@@ -20,139 +20,24 @@ Frontend (React, Next.js): <https://github.com/brocoders/extensive-react-boilerp
20
20
## Table of Contents <!-- omit in toc -->
21
21
22
22
- [ Features] ( #features )
23
- - [ Quick run] ( #quick-run )
24
- - [ Comfortable development] ( #comfortable-development )
25
- - [ Links] ( #links )
26
- - [ Automatic update of dependencies] ( #automatic-update-of-dependencies )
27
- - [ Database utils] ( #database-utils )
28
- - [ Tests] ( #tests )
29
- - [ Tests in Docker] ( #tests-in-docker )
30
- - [ Test benchmarking] ( #test-benchmarking )
31
23
- [ Contributors] ( #contributors )
32
24
33
25
## Features
34
26
35
- - [x] Database ( [ typeorm ] ( https://www.npmjs.com/package/typeorm ) ).
27
+ - [x] Database. Support [ TypeORM ] ( https://www.npmjs.com/package/typeorm ) and [ Mongoose ] ( https://www.npmjs.com/package/mongoose ) .
36
28
- [x] Seeding.
37
29
- [x] Config Service ([ @nestjs/config ] ( https://www.npmjs.com/package/@nestjs/config ) ).
38
30
- [x] Mailing ([ nodemailer] ( https://www.npmjs.com/package/nodemailer ) ).
39
31
- [x] Sign in and sign up via email.
40
32
- [x] Social sign in (Apple, Facebook, Google, Twitter).
41
33
- [x] Admin and User roles.
42
- - [x] I18N ([ nestjs-i18n] ( https://www.npmjs.com/package/nestjs-i18n ) ).
34
+ - [x] Internationalization/Translations ( I18N) ([ nestjs-i18n] ( https://www.npmjs.com/package/nestjs-i18n ) ).
43
35
- [x] File uploads. Support local and Amazon S3 drivers.
44
36
- [x] Swagger.
45
37
- [x] E2E and units tests.
46
38
- [x] Docker.
47
39
- [x] CI (Github Actions).
48
40
49
- ## Quick run
50
-
51
- ``` bash
52
- git clone --depth 1 https://github.com/brocoders/nestjs-boilerplate.git my-app
53
- cd my-app/
54
- cp env-example .env
55
- docker compose up -d
56
- ```
57
-
58
- For check status run
59
-
60
- ``` bash
61
- docker compose logs
62
- ```
63
-
64
- ## Comfortable development
65
-
66
- ``` bash
67
- git clone --depth 1 https://github.com/brocoders/nestjs-boilerplate.git my-app
68
- cd my-app/
69
- cp env-example .env
70
- ```
71
-
72
- Change ` DATABASE_HOST=postgres ` to ` DATABASE_HOST=localhost `
73
-
74
- Change ` MAIL_HOST=maildev ` to ` MAIL_HOST=localhost `
75
-
76
- Run additional container:
77
-
78
- ``` bash
79
- docker compose up -d postgres adminer maildev
80
- ```
81
-
82
- ``` bash
83
- npm install
84
-
85
- npm run migration:run
86
-
87
- npm run seed:run
88
-
89
- npm run start:dev
90
- ```
91
-
92
- ## Links
93
-
94
- - Swagger: < http://localhost:3000/docs >
95
- - Adminer (client for DB): < http://localhost:8080 >
96
- - Maildev: < http://localhost:1080 >
97
-
98
- ## Automatic update of dependencies
99
-
100
- If you want to automatically update dependencies, you can connect [ Renovate] ( https://github.com/marketplace/renovate ) for your project.
101
-
102
- ## Database utils
103
-
104
- Generate migration
105
-
106
- ``` bash
107
- npm run migration:generate -- src/database/migrations/CreateNameTable
108
- ```
109
-
110
- Run migration
111
-
112
- ``` bash
113
- npm run migration:run
114
- ```
115
-
116
- Revert migration
117
-
118
- ``` bash
119
- npm run migration:revert
120
- ```
121
-
122
- Drop all tables in database
123
-
124
- ``` bash
125
- npm run schema:drop
126
- ```
127
-
128
- Run seed
129
-
130
- ``` bash
131
- npm run seed:run
132
- ```
133
-
134
- ## Tests
135
-
136
- ``` bash
137
- # unit tests
138
- npm run test
139
-
140
- # e2e tests
141
- npm run test:e2e
142
- ```
143
-
144
- ## Tests in Docker
145
-
146
- ``` bash
147
- docker compose -f docker-compose.ci.yaml --env-file env-example -p ci up --build --exit-code-from api && docker compose -p ci rm -svf
148
- ```
149
-
150
- ## Test benchmarking
151
-
152
- ``` bash
153
- docker run --rm jordi/ab -n 100 -c 100 -T application/json -H " Authorization: Bearer USER_TOKEN" -v 2 http://< server_ip> :3000/api/v1/users
154
- ```
155
-
156
41
## Contributors
157
42
158
43
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
0 commit comments