This is a little demo app that allows users to discover movies. Please find in the readme file instructions on how to get started with this project.
This project uses themoviedb.org for all the movie data. To run this project please create .env
file in your project root with the following configuration. Follow this documentation to apply for your own api key. In this Vite.js project environment variables are prefixed with 'VITE'.
VITE_API_URL=https://api.themoviedb.org/3
VITE_IMG_API_URL=https://image.tmdb.org/t/p/w500
VITE_API_KEY=[your api key here]
This guide will help you get started with using Devcontainer and VSCode for your development environment.
- Install the prerequisites listed above on your machine.
- Open VSCode and install the Devcontainer extension from the Extensions tab in the sidebar (Ctrl+Shift+X).
- Create a new folder for your project, then open it in VSCode (File > Open Folder).
- In the bottom left corner of VSCode, click on the Remote Status (green icon).
- Select
Reopen in Container
from the dropdown menu, then wait for your container to build and start up (this may take a few minutes). - Once your container is running, you should see a new terminal window open up at the bottom of VSCode where you can run commands inside the container environment!
You're now ready to start coding inside your devcontainer!
This guide will show you how to build and deploy your application using Docker containers.
Before you begin, make sure you have the following installed:
- Clone your application repository:
git clone https://github.com/hmlinarevic/moviesnacks
- Change into the directory of your cloned repository:
cd moviesnacks
- Build the Docker image:
docker build -t your_tag .
- Check that the image was built successfully:
docker images
- Run a container from your newly built image:
docker run -i -rm -p 8080:80 your_tag
- Check that the container is running:
docker ps
- Visit http://localhost:8080 in a browser to access your app!
This is a React application that uses Vite as its development server.
- Node.js 14.18+, 16+
- Clone the repository:
git clone https://github.com/hmlinarevic/moviesnacks
- Install dependencies:
npm install
oryarn install
- Start the development server:
npm run dev
- Open http://localhost:5173 in your browser to view the application
To build a production version of the application, run:
npm run build # or yarn build
This will create a production-ready version of the application in the dist/
directory, which you can then deploy to your web server of choice.