- cinemaWS communicates with this server.
- This server is managing movies (from source: tvmaze), and subscriptions, and members (from source jsonplaceholder).
- This server is providing these objects to the front server "cinemaWS".
- Install prerequisits
- mongodb
- Clone the repo
git clone ...
- Install required packages
npm install
- Start node server
node index.js
On the first time run the server will fetch all data from external source (jsonplaceholder and tvmaze) and populate collections inside mongodb. 2 flag files (members-loaded.flag.txt
and movies-loaded.flag.txt
) will be created to prevent refetching same data again.