baxtiyor-gis / blogApi

Nodejs, ExpressJs MongoDb simple blog api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nodejs, ExpressJs MongoDB Blog Api

Installation

  1. clone this repository
  2. install package dependency via npm install command
  3. Create .env envoirment variables file or mv .env.example .env

How to run ?

  1. If you need run application on development mode run npm run dev
  2. If you need run application on production mode run npm start

Category CRUD

_id, name, descrption, updatedAt, createdAt

  • GET /api/categories
  • GET /api/categories/:id
  • POST /api/categories
  • PUT /api/categories/:id
  • DELETE /api/categories/:id

Blog CRUD

_id, name, text, tags, category, updatedAt, createdAt

  • GET /api/blogs
  • GET /api/blogs/:id
  • POST /api/blogs
  • PUT /api/blogs/:id
  • DELETE /api/blogs/:id

About

Nodejs, ExpressJs MongoDb simple blog api


Languages

Language:JavaScript 99.2%Language:Shell 0.8%