express-genix 1.1.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +204 -259
- package/index.js +229 -113
- package/lib/cleanup.js +41 -129
- package/lib/features.js +239 -0
- package/lib/generator.js +286 -204
- package/lib/utils.js +43 -91
- package/package.json +81 -63
- package/templates/cicd/github-actions.yml.ejs +70 -0
- package/templates/config/database.mongo.js.ejs +29 -33
- package/templates/config/database.postgres.js.ejs +41 -40
- package/templates/config/database.prisma.js.ejs +26 -0
- package/templates/config/redis.js.ejs +28 -0
- package/templates/config/schema.prisma.ejs +20 -0
- package/templates/config/swagger.js.ejs +30 -0
- package/templates/config/websocket.js.ejs +62 -0
- package/templates/controllers/authController.js.ejs +152 -129
- package/templates/controllers/exampleController.js.ejs +92 -152
- package/templates/controllers/userController.js.ejs +52 -60
- package/templates/core/Dockerfile.ejs +41 -31
- package/templates/core/README.md.ejs +191 -179
- package/templates/core/app.js.ejs +114 -64
- package/templates/core/docker-compose.yml.ejs +59 -47
- package/templates/core/dockerignore.ejs +7 -0
- package/templates/core/env.ejs +25 -19
- package/templates/core/env.example.ejs +26 -0
- package/templates/core/eslintrc.json.ejs +50 -20
- package/templates/core/gitignore.ejs +51 -51
- package/templates/core/healthcheck.js.ejs +24 -24
- package/templates/core/jest.config.js.ejs +19 -22
- package/templates/core/package.json.ejs +70 -33
- package/templates/core/prettierrc.json.ejs +11 -11
- package/templates/core/server.js.ejs +64 -48
- package/templates/core/tsconfig.json.ejs +19 -0
- package/templates/middleware/auth.js.ejs +80 -66
- package/templates/middleware/cache.js.ejs +67 -0
- package/templates/middleware/errorHandler.js.ejs +50 -46
- package/templates/middleware/requestId.js.ejs +9 -0
- package/templates/middleware/validation.js.ejs +109 -47
- package/templates/migrations/create-users.js.ejs +50 -0
- package/templates/migrations/seed-users.js.ejs +34 -0
- package/templates/migrations/sequelizerc.ejs +8 -0
- package/templates/models/User.mongo.js.ejs +29 -29
- package/templates/models/User.postgres.js.ejs +40 -40
- package/templates/models/index.mongo.js.ejs +7 -7
- package/templates/models/index.postgres.js.ejs +11 -11
- package/templates/routes/authRoutes.js.ejs +222 -13
- package/templates/routes/exampleRoutes.js.ejs +100 -12
- package/templates/routes/index.js.ejs +34 -24
- package/templates/routes/userRoutes.js.ejs +78 -15
- package/templates/services/authService.js.ejs +111 -35
- package/templates/services/exampleService.js.ejs +112 -112
- package/templates/services/userService.mongodb.js.ejs +33 -33
- package/templates/services/userService.postgres.js.ejs +30 -30
- package/templates/services/userService.prisma.js.ejs +36 -0
- package/templates/tests/auth.test.js.ejs +83 -66
- package/templates/tests/example.test.js.ejs +109 -112
- package/templates/tests/setup.js.ejs +11 -11
- package/templates/tests/users.test.js.ejs +42 -42
- package/templates/utils/envValidator.js.ejs +23 -0
- package/templates/utils/errors.js.ejs +12 -12
- package/templates/utils/logger.js.ejs +37 -28
- package/templates/utils/response.js.ejs +28 -0
- package/templates/utils/validators.js.ejs +34 -34
- package/templates/config/swagger.json.ejs +0 -194
- package/templates/core/index.js.ejs +0 -24
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Joshua Maeba Nyamasege
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,259 +1,204 @@
|
|
|
1
|
-
# Express-Genix
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
express-genix
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
├──
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
##
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
Run the CLI to ensure it generates working, properly formatted projects for all three database options:
|
|
207
|
-
|
|
208
|
-
```bash
|
|
209
|
-
node index.js init
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
Test each option:
|
|
213
|
-
- MongoDB with authentication
|
|
214
|
-
- PostgreSQL with authentication
|
|
215
|
-
- No database with example API
|
|
216
|
-
|
|
217
|
-
### 3. Publish
|
|
218
|
-
|
|
219
|
-
Login to npm and publish:
|
|
220
|
-
|
|
221
|
-
```bash
|
|
222
|
-
npm login
|
|
223
|
-
npm publish --access public
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
### 4. Verify
|
|
227
|
-
|
|
228
|
-
Test the published package:
|
|
229
|
-
|
|
230
|
-
```bash
|
|
231
|
-
npx express-genix init
|
|
232
|
-
# Should generate a project with zero linting errors
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
## Troubleshooting
|
|
236
|
-
|
|
237
|
-
### Publishing Issues
|
|
238
|
-
|
|
239
|
-
- **Name Conflict**: If `express-genix` is taken, use a scoped name like `@yourname/express-genix`
|
|
240
|
-
- **Authentication Error**: Verify with `npm whoami`, re-login if needed
|
|
241
|
-
- **Permission Issues**: Move project to a directory with full write access
|
|
242
|
-
|
|
243
|
-
### Generated Project Issues
|
|
244
|
-
|
|
245
|
-
- **Dependency Errors**: Run `npm cache clean --force && npm install`
|
|
246
|
-
- **Database Connection**: Ensure MongoDB/PostgreSQL is running and connection strings are correct
|
|
247
|
-
- **Linting Issues**: Run `npm run lint:fix && npm run format` to resolve formatting
|
|
248
|
-
|
|
249
|
-
## License
|
|
250
|
-
|
|
251
|
-
MIT License
|
|
252
|
-
|
|
253
|
-
Copyright (c) 2025 Joshua Maeba Nyamasege
|
|
254
|
-
|
|
255
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
256
|
-
|
|
257
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
258
|
-
|
|
259
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
# Express-Genix
|
|
2
|
+
|
|
3
|
+
A production-grade CLI tool that generates Express.js applications with best-in-class defaults. Scaffold a complete REST API in seconds — with TypeScript, authentication, Prisma/Mongoose/Sequelize, Docker, CI/CD, and more.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/express-genix)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://nodejs.org)
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
**Languages & ORMs**
|
|
12
|
+
- JavaScript or TypeScript
|
|
13
|
+
- MongoDB (Mongoose), PostgreSQL (Sequelize), PostgreSQL (Prisma), or no database
|
|
14
|
+
- Sequelize CLI migrations for PostgreSQL, Prisma migrations ready out of the box
|
|
15
|
+
|
|
16
|
+
**Security & Auth**
|
|
17
|
+
- JWT access + refresh tokens with token blacklist logout
|
|
18
|
+
- Optional Redis-backed blacklist for production multi-instance deployments
|
|
19
|
+
- bcrypt password hashing, input sanitization (`validator`)
|
|
20
|
+
- Helmet, CORS, environment validation on startup
|
|
21
|
+
- Auto-generated cryptographically secure JWT secrets
|
|
22
|
+
|
|
23
|
+
**API & Documentation**
|
|
24
|
+
- Swagger UI + swagger-jsdoc annotation-based docs
|
|
25
|
+
- Consistent `{ success, data, meta }` response envelope
|
|
26
|
+
- Paginated list endpoints
|
|
27
|
+
- Request ID / correlation tracking
|
|
28
|
+
|
|
29
|
+
**Developer Experience**
|
|
30
|
+
- Interactive prompts — pick language, database, features via checkbox
|
|
31
|
+
- Winston or Pino logger (you choose)
|
|
32
|
+
- ESLint (Airbnb) + Prettier pre-configured
|
|
33
|
+
- Jest + Supertest with coverage
|
|
34
|
+
- Rate limiting with configurable window/max
|
|
35
|
+
|
|
36
|
+
**Production Ready**
|
|
37
|
+
- Docker & Docker Compose (multi-stage, non-root user)
|
|
38
|
+
- GitHub Actions CI/CD (matrix testing, DB services)
|
|
39
|
+
- Node.js clustering with graceful shutdown
|
|
40
|
+
- Rollback on generation failure
|
|
41
|
+
- Git init + initial commit
|
|
42
|
+
|
|
43
|
+
**Post-Init**
|
|
44
|
+
- `express-genix add <feature>` — bolt on auth, websocket, docker, cicd, or prisma to an existing project
|
|
45
|
+
|
|
46
|
+
## Quick Start
|
|
47
|
+
|
|
48
|
+
### Install globally
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm install -g express-genix
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Or use with npx:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx express-genix init
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Create a project
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
express-genix init
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
You'll be prompted for:
|
|
67
|
+
|
|
68
|
+
1. **Project name**
|
|
69
|
+
2. **Language** — JavaScript or TypeScript
|
|
70
|
+
3. **Database** — MongoDB, PostgreSQL (Sequelize), PostgreSQL (Prisma), or None
|
|
71
|
+
4. **Features** — Auth, Rate Limiting, Swagger, Redis Token Blacklist, Docker, CI/CD, WebSocket, Request ID
|
|
72
|
+
5. **Logger** — Winston or Pino
|
|
73
|
+
|
|
74
|
+
The CLI generates your project, installs dependencies, formats code, and creates an initial git commit.
|
|
75
|
+
|
|
76
|
+
### Run it
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
cd my-express-app
|
|
80
|
+
npm run dev
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- **API**: http://localhost:3000/api
|
|
84
|
+
- **Swagger Docs**: http://localhost:3000/api-docs
|
|
85
|
+
- **Health Check**: http://localhost:3000/health
|
|
86
|
+
|
|
87
|
+
## Add features to an existing project
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
cd my-express-app
|
|
91
|
+
express-genix add docker # Adds Dockerfile, docker-compose.yml, .dockerignore
|
|
92
|
+
express-genix add cicd # Adds GitHub Actions CI workflow
|
|
93
|
+
express-genix add auth # Adds JWT auth, controllers, routes, middleware
|
|
94
|
+
express-genix add websocket # Adds Socket.io setup
|
|
95
|
+
express-genix add prisma # Adds Prisma schema, client config, migrations
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Generated Project Structure
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
my-express-app/
|
|
102
|
+
├── src/
|
|
103
|
+
│ ├── config/ # Database, Swagger, WebSocket configuration
|
|
104
|
+
│ ├── controllers/ # Route handlers
|
|
105
|
+
│ ├── middleware/ # Auth, validation, error handling, request ID
|
|
106
|
+
│ ├── models/ # Database models (Mongoose/Sequelize)
|
|
107
|
+
│ ├── routes/ # API route definitions with Swagger annotations
|
|
108
|
+
│ ├── services/ # Business logic layer
|
|
109
|
+
│ ├── utils/ # Logger, errors, response helpers, validators
|
|
110
|
+
│ ├── app.js|ts # Express app setup
|
|
111
|
+
│ └── server.js|ts # Server + clustering + WebSocket
|
|
112
|
+
├── tests/ # Jest + Supertest suites
|
|
113
|
+
├── prisma/ # Prisma schema (if selected)
|
|
114
|
+
├── migrations/ # Sequelize migrations (if PostgreSQL + Sequelize)
|
|
115
|
+
├── seeders/ # Sequelize seeders (if PostgreSQL + Sequelize)
|
|
116
|
+
├── .github/workflows/ # CI/CD pipeline (if selected)
|
|
117
|
+
├── .env # Auto-generated environment config
|
|
118
|
+
├── .env.example # Template for team sharing
|
|
119
|
+
├── Dockerfile # Multi-stage Docker build (if selected)
|
|
120
|
+
├── docker-compose.yml # Full stack compose (if selected)
|
|
121
|
+
└── package.json
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## API Endpoints (with database + auth)
|
|
125
|
+
|
|
126
|
+
### Authentication
|
|
127
|
+
| Method | Endpoint | Description |
|
|
128
|
+
|--------|----------|-------------|
|
|
129
|
+
| POST | `/api/auth/register` | Register a new user |
|
|
130
|
+
| POST | `/api/auth/login` | Login (returns access + refresh tokens) |
|
|
131
|
+
| POST | `/api/auth/refresh` | Refresh access token |
|
|
132
|
+
| POST | `/api/auth/logout` | Logout (blacklists token) |
|
|
133
|
+
|
|
134
|
+
### Users (protected)
|
|
135
|
+
| Method | Endpoint | Description |
|
|
136
|
+
|--------|----------|-------------|
|
|
137
|
+
| GET | `/api/users/profile` | Get current user |
|
|
138
|
+
| PUT | `/api/users/profile` | Update profile |
|
|
139
|
+
| DELETE | `/api/users/profile` | Delete account |
|
|
140
|
+
|
|
141
|
+
### Health
|
|
142
|
+
| Method | Endpoint | Description |
|
|
143
|
+
|--------|----------|-------------|
|
|
144
|
+
| GET | `/health` | Health check with uptime + DB status |
|
|
145
|
+
|
|
146
|
+
## Available Scripts
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
npm run dev # Development server with auto-reload
|
|
150
|
+
npm start # Production server with clustering
|
|
151
|
+
npm test # Run tests with coverage
|
|
152
|
+
npm run lint # Check ESLint
|
|
153
|
+
npm run lint:fix # Auto-fix ESLint issues
|
|
154
|
+
npm run format # Format with Prettier
|
|
155
|
+
npm run format:check # Verify formatting
|
|
156
|
+
npm run build # Compile TypeScript (TS projects only)
|
|
157
|
+
npm run db:migrate # Run Sequelize migrations (PostgreSQL)
|
|
158
|
+
npm run db:migrate:undo # Undo last migration
|
|
159
|
+
npm run prisma:migrate # Run Prisma migrations
|
|
160
|
+
npm run prisma:studio # Open Prisma Studio
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## CLI Options
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
express-genix init --skip-install # Skip npm install (useful for CI)
|
|
167
|
+
express-genix init --skip-cleanup # Skip auto-formatting (for debugging)
|
|
168
|
+
express-genix add <feature> # Add feature to existing project
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Environment Variables
|
|
172
|
+
|
|
173
|
+
Generated `.env` includes auto-generated JWT secrets:
|
|
174
|
+
|
|
175
|
+
| Variable | Description | Default |
|
|
176
|
+
|----------|-------------|---------|
|
|
177
|
+
| `NODE_ENV` | Environment | `development` |
|
|
178
|
+
| `PORT` | Server port | `3000` |
|
|
179
|
+
| `CORS_ORIGIN` | Allowed origins | `*` |
|
|
180
|
+
| `JWT_SECRET` | Access token secret (auto-generated) | — |
|
|
181
|
+
| `JWT_REFRESH_SECRET` | Refresh token secret (auto-generated) | — |
|
|
182
|
+
| `MONGO_URI` / `DATABASE_URL` | Database connection string | — |
|
|
183
|
+
| `REDIS_URL` | Redis URL (when Redis blacklist enabled) | `redis://localhost:6379` |
|
|
184
|
+
| `RATE_LIMIT_WINDOW_MS` | Rate limit window (ms) | `900000` |
|
|
185
|
+
| `RATE_LIMIT_MAX` | Max requests per window | `100` |
|
|
186
|
+
| `LOG_LEVEL` | Logging level | `info` |
|
|
187
|
+
|
|
188
|
+
## Docker
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
docker-compose up --build
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## Contributing
|
|
195
|
+
|
|
196
|
+
Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
197
|
+
|
|
198
|
+
## License
|
|
199
|
+
|
|
200
|
+
MIT © [Joshua Maeba Nyamasege](LICENSE)
|
|
201
|
+
|
|
202
|
+
## Changelog
|
|
203
|
+
|
|
204
|
+
See [CHANGELOG.md](CHANGELOG.md) for version history.
|