experimenting with sequelize in node API and reactjs front-end
- Clone this repo.
git clone
cd
into the directory and install dependencies.
npm install
- create an
.env
file in the working directory and include your database credentials if necessary.
DB_HOST="127.0.0.1"
DB_PORT="3306"
DB_USER="root"
DB_PASS="password"
- Create the database.
createdb dev_sequelizepostgres
- Run migration to create tables.
npm run db:migrate
- Start server locally in development mode.
npm run dev