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
+11-11
Original file line number
Diff line number
Diff line change
@@ -68,15 +68,15 @@ Create a new database with the name you have in your `.env`-file.
68
68
69
69
Then setup your application environment.
70
70
```
71
-
nps setup
71
+
npm start setup
72
72
```
73
73
74
74
> 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.
75
75
76
76
### Step 3: Serve your App
77
77
Go to the project dir and start your app with this npm script.
78
78
```
79
-
nps serve
79
+
npm start serve
80
80
```
81
81
82
82
> This starts a local server using `nodemon`, which will watch for any file changes and will restart the sever according to these changes.
@@ -149,26 +149,26 @@ All script are defined in the package.json file, but the most important ones are
149
149
* Install all dependencies with `yarn install`
150
150
151
151
### Linting
152
-
* Run code quality analysis using `nps lint`. This runs tslint.
152
+
* Run code quality analysis using `npm start lint`. This runs tslint.
153
153
* There is also a vscode task for this called `lint`.
154
154
155
155
### Tests
156
-
* Run the unit tests using `nps test` (There is also a vscode task for this called `test`).
157
-
* 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).
156
+
* Run the unit tests using `npm start test` (There is also a vscode task for this called `test`).
157
+
* 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).
158
158
159
159
### Running in dev mode
160
-
* Run `nps serve` to start nodemon with ts-node, to serve the app.
160
+
* Run `npm start serve` to start nodemon with ts-node, to serve the app.
161
161
* The server address will be displayed to you as `http://0.0.0.0:3000`
162
162
163
163
### Building the project and run it
164
-
* Run `nps build` to generated all JavaScript files from the TypeScript sources (There is also a vscode task for this called `build`).
164
+
* Run `npm start build` to generated all JavaScript files from the TypeScript sources (There is also a vscode task for this called `build`).
165
165
* To start the builded app located in `dist` use `npm start`.
166
166
167
167
### Database
168
-
* Run `nps db:migrate` to migrate schema changes to the database
169
-
* Run `nps db:migrate:rollback` to rollback one migration
170
-
* Run `nps db:seed` to seed sample data into the database
171
-
* Run `nps db:reset` to rollback all migrations and migrate any migration again
168
+
* Run `npm start db:migrate` to migrate schema changes to the database
169
+
* Run `npm start db:migrate:rollback` to rollback one migration
170
+
* Run `npm start db:seed` to seed sample data into the database
171
+
* Run `npm start db:reset` to rollback all migrations and migrate any migration again
172
172
173
173
### Console
174
174
* To run your own created command enter `npm run console <command-name>`.
0 commit comments