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
- Host: GitHub
- URL: https://github.com/swathireddy369/node-express-2.0-twitter-clone-
- Owner: swathireddy369
- Created: 2024-11-07T18:32:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T20:35:59.000Z (7 months ago)
- Last Synced: 2024-11-07T21:28:30.275Z (7 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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