https://github.com/ruslanguns/nest-mongoose-crud
https://github.com/ruslanguns/nest-mongoose-crud
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruslanguns/nest-mongoose-crud
- Owner: ruslanguns
- Created: 2019-10-12T19:01:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-16T08:02:03.000Z (7 days ago)
- Last Synced: 2025-11-16T10:03:56.845Z (7 days ago)
- Language: TypeScript
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic CRUD Sample with Nests and Mongoose
[API Documentation](https://documenter.getpostman.com/view/2862569/SVtWw7HY?version=latest) : Read the API documentation
## Description
### Basic CRUD Sample with Nestjs and Mongoose
#### Content:
```bash
➜ nest-crud git:(master) ✗ nest info
_ _ _ ___ _____ _____ _ _____
| \ | | | | |_ |/ ___|/ __ \| | |_ _|
| \| | ___ ___ | |_ | |\ `--. | / \/| | | |
| . ` | / _ \/ __|| __| | | `--. \| | | | | |
| |\ || __/\__ \| |_ /\__/ //\__/ /| \__/\| |_____| |_
\_| \_/ \___||___/ \__|\____/ \____/ \____/\_____/\___/
[System Information]
OS Version : Linux 4.4
NodeJS Version : v10.16.3
YARN Version : 1.17.3
[Nest Information]
platform-express version : 6.7.2
mongoose version : 6.1.2
common version : 6.7.2
core version : 6.7.2
```
## Installation
Prepare the environment variables in your system:
```env
# .env
MONGO_URI='mongodb://localhost:27017/'
PORT=5000
```
You can simple mv the `example.env` to `.env`
```bash
$ npm install
```
or
```bash
$ yarn install # if using yarn
```
## Running the app
```bash
# development
$ npm run start
# or
$ yarn start # if using yarn
# watch mode
$ npm run start:dev
# or
$ yarn start:dev # if using yarn
# production mode
$ npm run start:prod
# or
$ yarn start:prod # if using yarn
```
## Test
Tests are not setup in this project yet.
## License
Nest is [MIT licensed](LICENSE).