An API built with NodeJS and Sequelize to serve as a blog engine where people can register users and make posts
This project was made for me to learn about how Sequelize and NodeJS can work together and can apply the MVC architecture in my first API project. The API must be able to add users and let them make posts
To run this project, you will need the following packages:
-
In your terminal run
-
Express
npm install express
-
Nodemon
npm install nodemon
-
Sequelize
npm isntall sequelize
-
Sequelize-cli
npm install sequelize-cli
-
MySQL 2
npm install mysql2
-
-
Make a clone of this project with
git clone
-
Enter the blog-engine folder
-
Install all the dependencies
-
Modify the credencials of the database file in the config folder
-
Run
npx sequelize db: create
to create the database -
Run
npx sequelize db:migrate
to make the migrations -
Run
npx sequelize db:seed:all
to populate the database
🥂 Finished 🥂