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
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Try it!! We are happy to hear your feedback or any kind of new features.
27
27
28
28
## Features
29
29
-**Beautiful Syntax** thanks to the awesome annotations from [Inversify Express Utils](https://github.com/inversify/inversify-express-utils).
30
-
-**Easy API Testing** with included black-box testing.
30
+
-**Easy API Testing** with included e2e testing.
31
31
-**Dependency Injection** done with the nice framework from [Inversify](http://inversify.io/).
32
32
-**Fast Database Building** with simple migration and seeding from [Knex](http://knexjs.org/).
33
33
-**Simplified Database Query** with the ORM of [Knex](http://knexjs.org/) called [Bookshelf](http://bookshelfjs.org/).
@@ -67,15 +67,15 @@ Create a new database with the name you have in your `.env`-file.
67
67
68
68
Then setup your application environment.
69
69
```
70
-
npm run setup
70
+
nps setup
71
71
```
72
72
73
73
> This installs all dependencies with yarn. After that it migrates the database and seeds some test data into it. So after that your development environment is ready to use.
74
74
75
75
### Step 3: Serve your App
76
76
Go to the project dir and start your app with this npm script.
77
77
```
78
-
npm run serve
78
+
nps serve
79
79
```
80
80
81
81
> This starts a local server using `nodemon`, which will watch for any file changes and will restart the sever according to these changes.
@@ -148,26 +148,26 @@ All script are defined in the package.json file, but the most important ones are
148
148
* Install all dependencies with `yarn install`
149
149
150
150
### Linting
151
-
* Run code quality analysis using `npm run lint`. This runs tslint.
151
+
* Run code quality analysis using `nps lint`. This runs tslint.
152
152
* There is also a vscode task for this called `lint`.
153
153
154
154
### Tests
155
155
* Run the unit tests using `npm test` (There is also a vscode task for this called `test`).
156
-
* Run the black-box tests using `npm run test:black-box` and don't forget to start your application and your [Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server).
156
+
* Run the e2e tests using `nps test:e2e` and don't forget to start your application and your [Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server).
157
157
158
158
### Running in dev mode
159
-
* Run `npm run serve` to start nodemon with ts-node, to serve the app.
159
+
* Run `nps serve` to start nodemon with ts-node, to serve the app.
160
160
* The server address will be displayed to you as `http://0.0.0.0:3000`
161
161
162
162
### Building the project and run it
163
-
* Run `npm run build` to generated all JavaScript files from the TypeScript sources (There is also a vscode task for this called `build`).
163
+
* Run `nps build` to generated all JavaScript files from the TypeScript sources (There is also a vscode task for this called `build`).
164
164
* To start the builded app located in `dist` use `npm start`.
165
165
166
166
### Database
167
-
* Run `npm run db:migrate` to migrate schema changes to the database
168
-
* Run `npm run db:migrate:rollback` to rollback one migration
169
-
* Run `npm run db:seed` to seed sample data into the database
170
-
* Run `npm run db:reset` to rollback all migrations and migrate any migration again
167
+
* Run `nps db:migrate` to migrate schema changes to the database
168
+
* Run `nps db:migrate:rollback` to rollback one migration
169
+
* Run `nps db:seed` to seed sample data into the database
170
+
* Run `nps db:reset` to rollback all migrations and migrate any migration again
171
171
172
172
### Console
173
173
* To run your own created command enter `npm run console <command-name>`.
@@ -241,7 +241,7 @@ The route prefix is `/api` by default, but you can change this in the .env file.
| knexfile.ts | This file is used for the migrations and seed task of knex |
@@ -250,7 +250,7 @@ The route prefix is `/api` by default, but you can change this in the .env file.
250
250
*[Microsoft/TypeScript-Node-Starter](https://github.com/Microsoft/TypeScript-Node-Starter) - A starter template for TypeScript and Node with a detailed README describing how to use the two together.
251
251
*[express-graphql-typescript-boilerplate](https://github.com/w3tecch/express-graphql-typescript-boilerplate) - A starter kit for building amazing GraphQL API's with TypeScript and express by @w3tecch
252
252
*[aurelia-typescript-boilerplate](https://github.com/w3tecch/aurelia-typescript-boilerplate) - An Aurelia starter kit with TypeScript
253
-
*[Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server) - Useful for black-box testing or faking an oAuth server
253
+
*[Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server) - Useful for e2e testing or faking an oAuth server
0 commit comments