git clone https://github.com/senthil88/train-realtime.git
cd train-realtime
npm install
cp .env.example .env
npm start
Folder for pm2, nginx & docker configuration
cd deploy
cat nginx.conf
cat ecosystem.config.js
You can also use docker for development. Make sure you run npm install on your host machine so that code linting and everything works fine.
npm i
cp .env.example .env
Start the services
docker-compose up -d
View the logs
docker-compose logs -f
In case you install a npm module while developing, it should also be installed within docker container, to do this first install the module you want with simple npm i module name
, then run it within docker container
docker-compose exec node npm i
tape tests/**/*.js
Admin can able to emit the event about the current train status
Guest User can able to check the train status. Whenevner admin have emit the event, guest user will receive the notification.
MIT