An open API service indexing awesome lists of open source software.

https://github.com/swathireddy369/node-express-2.0-twitter-clone-


https://github.com/swathireddy369/node-express-2.0-twitter-clone-

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Node-Express-2.0-Twitter-Clone

# Twitter Project

This is a simple Twitter-like API built using Node.js and Express. It allows users to create, read, update, and delete posts (CRUD operations). Each post consists of a `title` and `content`.

## Features

- **Express.js**: Framework for building the API.
- **Body-Parser**: Middleware for parsing JSON request bodies.
- **Endpoints**:
- `GET /post`: Retrieve all posts.
- `GET /post/:id`: Retrieve a specific post by its ID.
- `POST /post`: Create a new post with validation.
- `PUT /post/:id`: Update an existing post by ID.
- `DELETE /post/:id`: Delete a post by ID.

## Setup

1. **Prerequisites**: Ensure you have [Node.js](https://nodejs.org/) installed.
2. **Clone the repository**:
```bash
git clone
cd twitter-project