Trybe Project - Blogs API
This RESTful API for blog management was built with Node.js and Sequelize to provide efficient and scalable blog management functionalities.
- Develop a RESTful API from a CRUD (Create, Read, Update and Delete);
- Use Sequelize ORM to read and write to a MySQL/PostgreSQL database.
npm installInitially, you need to configure a MySQL database:
- Defining environment variables in an .env file;
- Creating the database and tables with:
npx sequelize db:create
npx sequelize db:migrateIf desired, populating the tables with initial data with:
npx sequelize db:seed:allThe application can be started with:
npm startnpm test