Skip to content

senthil88/train-realtime

Repository files navigation

Local Setup

git clone https://github.com/senthil88/train-realtime.git
cd train-realtime
npm install
cp .env.example .env
npm start

100% Production Ready Docker setup with PM2, Nginx & Logrotate

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

Run the test cases

tape tests/**/*.js

Understanding admin

Admin can able to emit the event about the current train status

Admin Screenshots

alt text

Understanding User/Guest

Guest User can able to check the train status. Whenevner admin have emit the event, guest user will receive the notification.

Guest User Screenshots

alt text

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published