https://github.com/eonova/node-express-mongo
Use Node、Express and MongoDB create a RESTFUL API
https://github.com/eonova/node-express-mongo
dotenv express monogodb node nodemon practice template-project
Last synced: 7 months ago
JSON representation
Use Node、Express and MongoDB create a RESTFUL API
- Host: GitHub
- URL: https://github.com/eonova/node-express-mongo
- Owner: eonova
- Created: 2024-04-27T06:02:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-27T08:11:23.000Z (over 1 year ago)
- Last Synced: 2025-05-18T16:08:30.007Z (8 months ago)
- Topics: dotenv, express, monogodb, node, nodemon, practice, template-project
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST-API-EXPRESS-MONGO
Use Node、Express and MongoDB create a RESTFUL API
## Study
- [MongoDB Official](https://www.mongodb.com/)
- [MongoDB Download](https://www.mongodb.com/try/download/community)
```bash
pnpm add express mongoose nodemon dotenv
```
1. Express 将被用于中间件,以创建各种 CRUD 端点
2. Mongoose 用于使用各种查询来管理 MongoDB 中的数据
3. Nodemon 用于在我们每次保存文件时重新启动我们的服务器
4. Dotenv 管理 .env 文件
### MongoDB
- NoSQL
- 面向文档存储的数据库
- 由C++语言编写的开源数据库
- 分布式文件存储系统
- 文件存储格式为BSON(一种JSON的扩展)
## Quick Start
### Install Deps
```bash
pnpm i
```
### Config Env
In the `.env` file, configure your MongoDB address and other config.
### Activate
```bash
pnpm start
```
## Usage
You can create a model in the `app/models` directory and reference it using `app/models/tutorials.schema.js`.
## Contribute
Contributions are welcome, PR is welcome, More references [LeoStar's Contribute](https://github.com/ileostar/contribute)