Movie search project based on OMDB Api.
Dependencies :
- NodeJs
- Express
- MongoDB & Mongoose
- Jest.Js
- Angular
- Docker-Compose
- TypeScript
If you don't want to install mongodb, dependecies and create all database or API service manually, you can create docker container with all you need already installed.
- Install docker
- Linux users must install docker-compose as well. For MacOS and Windows, docker-compose is included into Docker for Desktop.
- Execute
npm run dc:start
[ MongoDB and Movie-API should be up with this step. skip steps and follow Frontend App section now]
- Execute
npm run dc:build
to only build.
npm run dc:start
starts DB containerized database; MongoDB And API servicesnpm run dc:start-bg
starts DB & API in the background if you don't want to see logsnpm run dc:stop
stops containersnpm run dc:clean
removes database & APInpm run dc:cli:mongo
connect to MongoDB CLI
This command can be useful if you start your environment in the background with npm run dc:start-bg
. You can follow the log stream for any service with the following command:
npm run logs:mongo
Connect to MongoDB log streamnpm run logs:api
Connect to movie-api log stream
Install Angular-cli
To prepare and start the front-end movie app use below command.
npm run start:app
Execute npm run dc:start
to start mongoDB.
npm run test
to run unit tests with coveragenpm run test:watch
to run unit tests in watch mode.
Made with :heart: