Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishika105/todo-app-express
A backend project that uses ExpressJS for providing functionalities of a todo app.
https://github.com/rishika105/todo-app-express
express-js mongodb node-js
Last synced: 6 days ago
JSON representation
A backend project that uses ExpressJS for providing functionalities of a todo app.
- Host: GitHub
- URL: https://github.com/rishika105/todo-app-express
- Owner: rishika105
- Created: 2024-05-15T16:08:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T05:18:06.000Z (about 2 months ago)
- Last Synced: 2024-09-16T06:37:36.228Z (about 2 months ago)
- Topics: express-js, mongodb, node-js
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo App (Express)
This is a simple Todo application built with **Node.js** and **Express.js**. The application demonstrates basic CRUD (Create, Read, Update, Delete) functionality for managing Todos.
## Features
- **Create** new Todos
- **Retrieve** existing Todos
- **Update** existing Todos
- **Delete** Todos## Folder Structure
- **config/**: Contains configuration files (e.g., database connections).
- **controllers/**: Contains functions that handle requests and responses.
- **models/**: Contains Mongoose schema for the Todo.
- **routes/**: Defines the endpoints for the CRUD operations.
-
## Installation and Setup1. Clone the repository:
```bash
git clone https://github.com/rishika105/todo-app-express.git
```2. Navigate to the project directory:
```bash
cd todo-app-express
```3. Install dependencies:
```bash
npm install
```4. Start the server:
```bash
npm start
```## Tech Stack
- **Node.js**: JavaScript runtime environment.
- **Express.js**: Web framework for Node.js.
- **MongoDB**: NoSQL database for storing Todos.
- **Mongoose**: MongoDB ORM for modeling and managing data.## API Endpoints
- **GET** `/todos`: Fetch all todos.
- **POST** `/todos`: Create a new todo.
- **PUT** `/todos/:id`: Update an existing todo by ID.
- **DELETE** `/todos/:id`: Delete a todo by ID.