https://github.com/danlb-dev/express-mongo-crud-api
RESTful API built with Node.js, Express, TypeScript & MongoDB. Includes CRUD for clients/products/orders, Swagger docs, and extensible structure.
https://github.com/danlb-dev/express-mongo-crud-api
express expressjs mongoose mongoose-js mongoose-model mongoose-schema mongoosejs node nodejs rest-api restapi restful-api restful-webservices typescript
Last synced: 3 months ago
JSON representation
RESTful API built with Node.js, Express, TypeScript & MongoDB. Includes CRUD for clients/products/orders, Swagger docs, and extensible structure.
- Host: GitHub
- URL: https://github.com/danlb-dev/express-mongo-crud-api
- Owner: danlb-dev
- Created: 2025-06-17T02:36:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-20T23:25:38.000Z (about 1 year ago)
- Last Synced: 2025-06-21T00:25:32.916Z (about 1 year ago)
- Topics: express, expressjs, mongoose, mongoose-js, mongoose-model, mongoose-schema, mongoosejs, node, nodejs, rest-api, restapi, restful-api, restful-webservices, typescript
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-mongo-crud-api
A simple RESTful API built with **Node.js**, **Express**, **TypeScript**, and **MongoDB**.
This project provides full CRUD support for managing Clients, Products, and Orders.
It was designed to be consumed by frontend apps like a CRM.
> **Note:** This repository is a personal study and demonstration project.
---
## Features
- CRUD operations for:
- Clients
- Products
- Orders
- Swagger documentation for easy testing and onboarding
- TypeScript + Express structured and modular codebase
- MongoDB with Mongoose ODM
- Centralized error handling middleware for clean and consistent error responses
- Environment-based configuration using `.env` files
---
## 🚀 Tech Stack
- **Node.js** (v18+)
- **TypeScript**
- **Express**
- **MongoDB** with **Mongoose**
- **Swagger** (OpenAPI) for API documentation
- **dotenv** for environment variable management
---
## 📦 Getting Started
### Prerequisites
- [Node.js](https://nodejs.org/) (v18+ recommended)
- [MongoDB](https://www.mongodb.com/) running locally or in Docker
### Installation
```bash
git clone https://github.com/danlb-dev/express-mongo-crud-api.git
cd express-mongo-crud-api
npm install
npm run start
```
Then open your browser at http://localhost:3200 to view the Swagger documentation.