/trainsRUs

Full-Stack application demonstrating the creation of a relational database from schema design to implementation.

Primary LanguagePython

Trains 'R' Us 🚂

Live demo available here

Trains 'R' Us is a web application built to demonstrate the Vue-Flask-PSQL-Docker stack's capacity for quick and agile yet sophisticated development. The application models a sample railway corporation's databases and shows the possibility for a custom built app to deliver that information directly to employees of all types.

For example, employee management overviews: Overview Screenshot

And responsive, easy to understand forms: Worker Form Screenshot Provide a clear method of interaction for a database with the following ER schema: ER Diagram

Deploying

  1. Make sure docker commands are available

  2. Create runner

chmod +x run.sh
  1. Run the app
./run.sh stack-up

this will set up the postgres+python+flask+frontend stack, and load in initial tables and entries.

Note: occasionally the Database will fail to start properly in which case there will be some error messages in the docker logs and things won't work properly. If this occurs, simply tear down the stack, put 'er up again, and hope for the best.

  1. Tear down when done unless you want to murder your battery
./run.sh stack-down