You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,6 +46,8 @@ Try it!! We are happy to hear your feedback or any kind of new features.
44
46
-**Easy event dispatching** thanks to [event-dispatch](https://github.com/pleerock/event-dispatch).
45
47
-**Fast Database Building** with simple migration from [TypeORM](https://github.com/typeorm/typeorm).
46
48
-**Easy Data Seeding** with our own factories.
49
+
-**GraphQL** provides as a awesome query language for our api [GraphQL](http://graphql.org/).
50
+
-**DataLoaders** helps with performance thanks to caching and batching [DataLoaders](https://github.com/facebook/dataloader).
47
51
48
52
### Comming soon
49
53
@@ -128,6 +132,7 @@ All script are defined in the package.json file, but the most important ones are
128
132
### Tests
129
133
130
134
- Run the unit tests using `npm start test` (There is also a vscode task for this called `test`).
135
+
- Run the integration tests using `npm start test:integration`.
131
136
- Run the e2e tests using `npm start test:e2e` and don't forget to start your application and your [Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server).
132
137
133
138
### Running in dev mode
@@ -165,9 +170,11 @@ The swagger and the monitor route can be altered in the `.env` file.
165
170
| Route | Description |
166
171
| -------------- | ----------- |
167
172
|**/api**| Shows us the name, description and the version of the package.json |
173
+
|**/graphql**| Route to the graphql editor or your query/mutations requests |
168
174
|**/swagger**| This is the Swagger UI with our API documentation |
169
175
|**/monitor**| Shows a small monitor page for the server |
170
176
|**/api/users**| Example entity endpoint |
177
+
|**/api/pets**| Example entity endpoint |
171
178
172
179
## Project Structure
173
180
@@ -187,6 +194,9 @@ The swagger and the monitor route can be altered in the `.env` file.
187
194
|**src/api/services/**| Service layer |
188
195
|**src/api/subscribers/**| Event subscribers |
189
196
|**src/api/validators/**| Custom validators, which can be used in the request classes |
|**test/integration/***.test.ts | Integration test with SQLite3 |
202
213
|**test/unit/***.test.ts | Unit tests |
203
214
| .env.example | Environment configurations |
215
+
| .env.test | Test environment configurations |
204
216
| ormconfig.json | TypeORM configuration for the database. Used by seeds and the migration. (generated file) |
217
+
| mydb.sql | SQLite database for integration tests. Ignored by git and only available after integration tests |
205
218
206
219
## Logging
207
220
@@ -378,6 +391,9 @@ npm start db.seed
378
391
| [Auth0 API Documentation](https://auth0.com/docs/api/management/v2) | Authentification service |
379
392
| [Jest](http://facebook.github.io/jest/) | Delightful JavaScript Testing Library for unit and e2e tests |
380
393
| [swagger Documentation](http://swagger.io/) | API Tool to describe and document your api. |
394
+
| [SQLite Documentation](https://www.sitepoint.com/getting-started-sqlite3-basic-commands/) | Getting Started with SQLite3 – Basic Commands. |
395
+
| [GraphQL Documentation](http://graphql.org/graphql-js/) | A query language for your API. |
396
+
| [DataLoader Documentation](https://github.com/facebook/dataloader) | DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a consistent API over various backends and reduce requests to those backends via batching and caching. |
0 commit comments