Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

yoda-glitch/blog-API

Type de record:

software
Créateur:
yod
Hôte:
Full-featured blogging API with JWT authentication, role-based access control, and MongoDB database. Supports creating, editing, publishing blogs with search and filter capabilities. Altschool Africa Backend Engineering project. # Blog API - Backend A RESTful API for a blogging platform built with Node.js, Express, and MongoDB. Features user authentication, blog management, and advanced filtering capabilities. Full-featured blogging API with JWT authentication, role-based access control, and MongoDB database. Supports creating, editing, publishing blogs with search and filter capabilities. Altschool Africa Backend Engineering project. ## Features - **JWT Authentication** - Secure user registration and login - **Blog CRUD Operations** - Create, read, update, and delete blogs - **Draft & Publish System** - Save blogs as drafts before publishing - **Advanced Filtering** - Search by title, author, tags - **Automatic Calculations** - Reading time based on word count - **View Tracking** - Track blog read counts - **Owner Authorization** - Users can only edit/delete their own blogs ## Tech Stack - **Node.js** - JavaScript runtime - **Express.js** - Web framework - **MongoDB** - NoSQL database - **Mongoose** - ODM for MongoDB - **JWT** - Authentication tokens - **bcryptjs** - Password hashing ## API Endpoints ### Authentication ``` POST /api/auth/register Register a new user POST /api/auth/login Login user and get token ``` ### Blogs ``` POST /api/blogs Create a new blog (requires auth) GET /api/blogs Get all published blogs GET /api/blogs/:id Get a single blog by ID GET /api/blogs/user/me Get logged-in user's blogs (requires auth) PATCH /api/blogs/:id Update a blog (requires auth, owner only) DELETE /api/blogs/:id Delete a blog (requires auth, owner only) ``` ## Installation & Setup ### Prerequisites - Node.js - MongoDB ### Steps 1. **Clone the repository** ```bash git clone github.com cd blog-api ``` 1. **Install dependencies** ```bash npm install ``` 1. **Create `.env` file in root directory** ``` MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key PORT=500 …

Visit

github.com

Similaires

bobbypriam/magangan-blog21mebrat/ethiopian-heritage-blogabdelhaqueidali/Amazigh-Researchers-BlogMokowz/Jibonge-Blog-Appasaiah4812/AI-Powered-Blog-Platformcaryn1bj/Details-Fiction-and-blog

bobbypriam/magangan-blog

Wordpress Theme for Kibar: Magangan blog Kibar: Magangan - Wordpress Theme ========================

21mebrat/ethiopian-heritage-blog

Ethiopain heritage face # 🇪🇹 Ethiopian Heritage Blog A high-performance, modern blogging platform

abdelhaqueidali/Amazigh-Researchers-Blog

Mokowz/Jibonge-Blog-App

Jibonge Blog App is a simple blog platform for people who love Swahili and Sheng. It lets users writ

asaiah4812/AI-Powered-Blog-Platform

AI-Powered Blog Website (Nigeria-Based) This is an advanced AI-powered blogging platform designed fo

caryn1bj/Details-Fiction-and-blog

Hmmmmm. Thanx to David and WordPress for sharing facts with us. If getting posted from the US and Eu