- Clone repository
- Open a command prompt or any other terminal
- Set the path to
[repository root]
- Run the command
pnpm i
to install requrired dependecies
⚠️ note: pnpm needs to be installed globaly on your pc (npm install -g pnpm
)💬 I prefer using pnpm but it can be used with
npm i
as well
- Run the command:
npm run build
- Make sure that the build was successful
- Open a command prompt or any other terminal
- Set the path to
[repository root]
- Run the command
npm run start
ornpm run dev
to start the app
💬 this will start your application in a local
node.js
server. You will be able to access your application athttp://localhost:8080
⚠️ port can be changeed in .env file
- Server use exisitng mongodb on mongo atlas
- If you want to use other instance of mongodb feel free to change connection parameters in .env file
⚠️ on first start, if movie collection in db is empty, app will insert inital 100 movie records from json file.
- In the repository you can find collection for postman
postman_collection.json
- Open postman app and import this collection
- Make sure that server is up and running
- Feel free to play around with prepared API endpoints