This project is the implementation of the final project of database management systems at Mount Vernon Nazarene University.
- Node.js
- Express
- Bootstrap
- Handlebars
- MySQL
-
Make sure you have
yarn
installed. You could usenpm
if you want, but I can't guarantee it'll work correctly if the dependencies change. -
Setup MySQL with the included
setup.sql
file. It has commands to create the database and to insert all tables and dummy data required. -
Install dependencies with
yarn
. -
Add a
keys_dev.js
to the config folder, usingkeys_prod.js
as an example to setup local MySQL in a development environment. -
Run with
yarn start
-
Make sure you use
process.env.MYSQL_HOST
in yourkeys_dev.js
for docker-compose to correctly link the containers. -
Run
docker-compose build
to build the images and thendocker-compose up
to start the containers.
The MySQL container is slow to start so give it like 30 seconds before using the app.