- Project to develop API and Database for a blog content production, creating a posts
CRUD
, usingNode.js
andSequelize
package.
- Create migrations for Users, Categories, BlogPosts, and PostCategories entities ✔️
- Create User model ✔️
- Create POST endpoint in
/login
✔️ - Create POST endpoint in
/user
with JWT token ✔️ - Create GET endpoint in
/user
✔️ - Create GET endpoint in
/user/:id
✔️ - Create Category model ✔️
- Create POST endpoint in
/categories
✔️ - Create GET endpoint in
/categories
✔️ - Create BlogPost model ✔️
- Create PostCategory Model ✔️
- Create POST endpoint in
/post
✔️ - Create GET endpoint in
/post
✔️ - Create GET endpoint in
/post/:id
✔️ - Create PUT endpoint in
/post/:id
✔️
- Create DELETE endpoint in
/post/:id
✔️ - Create DELETE endpoint in
/user/me
✔️ - Create GET endpoint in
/post/search?q=:searchTerm
✔️
With Docker
👉 Dockerfile and Docker-compose were provided by Trybe
- Run
node
anddb
by running:
$ docker-compose up -d --build
- Open interactive terminal using:
$ docker exec -it blogs_api bash
- Install dependencies, inside the container, with:
$ npm install
Install it locally
- Open terminal and create a directory in your preferred location:
$ mkdir <Your directory name here>
- Access directory then clone the repository:
$ cd <Your directory name here>
$ git clone [email protected]:ViniGB/Project-Blogs-Api.git
- Access the newly created directory:
$ cd Project-Blogs-Api
- Install dependencies:
$ npm install