-
Notifications
You must be signed in to change notification settings - Fork 4
Database init and how to use and edit
ootee edited this page Jun 29, 2018
·
1 revision
In order to use the database, you must have Postgresql installed on your system and environment file set as adviced in dotenv-guide.
In your terminal give the following commands at the backend folder, in order to initiate the database:
$ npm run createdb
$ npm run migrate
Start the server in your terminal with following command at the project root folder (for now in database folder):
$ npm run start
You must use migrations when editing the database because the production database cannot be dropped!!!