In order to setup the application, the steps for database setup need to be completed first, and in the exact order given. Then, the application environment setup needs to be completed, also in order.
The application can be run by using the npm start command from within the App folder.
- Create a new database for the application (e.g.
taskmaster) - Make sure to set that as the active database before you run the scripts
- Navigate into the
sqlfolder - Execute the
create-tables.sqlscript on your instance of the database - Execute the
seed-tables.sqlscript on your instance of the database - Execute the
create-views.sqlscript on your instance of the database - Execute the
create-triggers.sqlscript on your instance of the database
- Navigate into the
Appfolder and runnpm install - Make a copy of
template.env, rename it to just.env - Adjust the password/database name in the
DATABASE_URLto be correct - Set
SECRETto be some random string of characters