Skip to content

A CRUD REST API based on NodeJS and Express simulating the management of a blog application

Notifications You must be signed in to change notification settings

guilherme0893/Blogs-API

Repository files navigation

Introduction

This application was created during Trybe Back-end Module. It is a API using the MSC architecture developed with NodeJS, Express and Nodemon for the management of a blog application. Here, the Sequelize was used in order to experience the developed of CRUD applications using an ORM.

Exploring the application

  1. First of all clone the repository via git clone

  2. Then install the dependencies, if they exist via npm install

  3. Pay attention that you should create a .env file in the root for environment configuration. There some information regarding MySQL should be completed, such as: host, user, password and your port

host: process.env.HOSTNAME

user: process.env.MYSQL_USER

password: process.env.MYSQL_PASSWORD

  1. Attention that this projects uses Sequelize, so start the database running the command npm run prestart

  2. After this run the command npm seed to populate the database

  3. To start the project just type npm start or npm run dev

  4. Have fun

Updates

This project will receive updates as some tasks provided by Trybe are still incomplete and, let's be honest, it is always possible to do better. See you!

About

A CRUD REST API based on NodeJS and Express simulating the management of a blog application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published