Train tracker allows users to:
- Post schedule for a new train line with constraints:
- Name up to 4 characters (i.e. ‘LINH’, 'No1')
- Specific to the minute the train arrive (i.e. ‘9:53 PM’)
- Find the next time has mutiple trains arrive at the same time:
- Specific time if current day still has remain time
- Specific time of the first time available the next day if current day doesn't has remain time
- No time if there are not time availble
- Delete an unwanted train line schedule
-
Or you watch on Youtube : https://youtu.be/A-K6PpscsZ8
- Fork and clone this repo.
- Run
npm install. - Create
train-trackerandtrain-tracker-testdatabases on PostgreSQL database. - Check out the starting seed file in
seed.js- you can run it by executingnpm run seed - Start the build process and your application with:
npm run start-dev. If you're using Windows, you may need to executenpm run start-serverandnpm run build-watchseparately (in their own terminal tabs). - If you navigate to localhost:8080/trains, you should see some UI already :)
- React
- Redux
- Node.js
- Express
- Sequelize
- PostgreSQL