Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Creating the Database

Noam edited this page Feb 26, 2020 · 4 revisions

Table of Contents

  1. [Prerequisite]
  2. [Installation]

Prerequisite

  • Nodejs

Installation

before you create the database you should set the envs so that the connection to the database is possible: export DB_HOST= export DB_USER= export DB_PASSWORD= export DB_PORT= export DB_NAME=

To create the database you will need to run a js script that creates tables in the empty database

in student-saver\backend\migrations folder you can find the script named 20200224124257-create-site.js to run the script you can use the command: sequelize db:migrate and sequelize db:seed:all to create the database.

To give you a visual view of the database you can look at the ERD below:

Clone this wiki locally