/Blog-API

Primary LanguageJavaScript

Blog-API

The objective is to create a blog API where registered users can create as well as update blog posts. Non-registered users should not be able to create/update blog posts.

Features

  • Register User.
  • Login User.
  • JWT Authentication.
  • CREATE Blog by authenticated user.
  • UPDATE own blogs by authenticated user.
  • DELETE own blogs by authenticated user.
  • READ Blogs.
  • GET all blogs created by user.

Getting Started

Clone down this repository. You will need node.js and git installed globally on your machine.

Installation and Setup.

  1. Installation: npm install
  2. Add .env file in the directory with the .env variables shown in .env.example file.
  3. Start server: node server.js

Runs the app in the development mode on PORT 5000.

Run Tests

npm run test