Create a .env
file in the root directory of the project. Then fill environment variables. You can take a look at the template file .env.example
. This file should contain environmental variable VITE_IMDB_API_KEY
.
The next step is to install globally package manager. This project uses pnpm. To do that you will need to type in your terminal command like down below:
npm i -g pnpm
After successfully installing the package manager install dependencies.
pnpm install
To run the project in the development mode
pnpm run dev
To build the project
pnpm run build
To run production-ready bundle
pnpm run preview
To run tests
pnpm run test
To run tests with UI
pnpm run test:ui
To format the project
pnpm run format
To lint the project
pnpm run lint
To build the production-ready docker image
pnpm run build-docker
To start the production-ready docker image
pnpm run start-docker
To build the docker image dedicated to working on the project in the container
pnpm run build-development-docker
To start the docker image dedicated to working on the project in the container
pnpm run start-development-docker