- To start the client all you need is inside
client
folder run:
- npm install #This will install dependencies
- npm start
The server will run at http://localhost:3000/
Timezones can be imported from the API and persisted in Mongo.
To do that, open the server_app
container and run
node migrations/timezone-import.js
This will fetch each timezone and persist it on the database database.
For time saving, migrations can be stopped any time and the database will have the timezones that were able to finalize persistance.
The server runs with docker compose. So in order to run it you need to have it installed on your computer. Instructions here
To run the build and run containers just type inside server
docker-compose up
Information can be fetched from both database and external API.
If you want to switch between those sources all you have to do is change this variable from the server/.env
# NODE_APP_FETCH_MODE=server
NODE_APP_FETCH_MODE=db