Install Node and MySQL in your computer.
Clone the project repository by running the command below:
# using SSH
git clone [email protected]:derduskenga/decoded-sequelize-tutorial.git
# using HTTPS
git clone https://github.com/derduskenga/decoded-sequelize-tutorial.git
After cloning, run:
Run: npm install
create a .env file in project root directory and provide values of the following:
DB_USERNAME=
DB_PASSWORD=
DB_NAME=
DB_HOST=
API_PORT=
Run the following command to create your database tables
Run: npx sequelize-cli db:migrate
Optionally, run the folowind command to add some fake tables to your database table.
npx sequelize-cli db:seed:all