Skip to content

Commit 346cb7e

Browse files
author
vinod
committed
nestjs github
1 parent 5200db8 commit 346cb7e

20 files changed

+17367
-0
lines changed

.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin'],
8+
extends: [
9+
'plugin:@typescript-eslint/eslint-recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'prettier',
12+
],
13+
root: true,
14+
env: {
15+
node: true,
16+
jest: true,
17+
},
18+
rules: {
19+
'@typescript-eslint/interface-name-prefix': 'off',
20+
'@typescript-eslint/explicit-function-return-type': 'off',
21+
'@typescript-eslint/no-explicit-any': 'off',
22+
},
23+
};

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
### Mongoose sample
2+
3+
### Installation
4+
5+
6+
`npm install`
7+
8+
### Running
9+
10+
This example requires docker or a local mongodb installation. If using a local mongodb, see `app.module.ts` for connection options, and make sure there are matching options for the mongodb installation and the source code.
11+
12+
#### Docker
13+
14+
There is a `docker-compose.yml` file for starting Docker.
15+
16+
`docker-compose up`
17+
18+
After running the sample, you can stop the Docker container with
19+
20+
`docker-compose down`
21+
22+
### Run the sample
23+
24+
Then, run Nest as usual:
25+
26+
`npm run start`
27+

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3"
2+
3+
services:
4+
mongodb:
5+
image: mongo:latest
6+
environment:
7+
- MONGODB_DATABASE="test"
8+
ports:
9+
- 27017:27017

0 commit comments

Comments
 (0)