Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruslanguns/nest-mongoose-crud
https://github.com/ruslanguns/nest-mongoose-crud
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruslanguns/nest-mongoose-crud
- Owner: ruslanguns
- Created: 2019-10-12T19:01:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T05:50:15.000Z (11 months ago)
- Last Synced: 2024-05-28T17:07:35.549Z (6 months ago)
- Language: TypeScript
- Size: 91.8 KB
- Stars: 0
- Watchers: 3
- 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).