Skip to content

Commit 49d6c37

Browse files
committed
Cleaned up app startup in dev mode.
1 parent ca8c8c9 commit 49d6c37

File tree

3 files changed

+372
-267
lines changed

3 files changed

+372
-267
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ First make a copy of the sample environment file `.env-sample` to `.env`. Make a
2828
To run the application in development mode:
2929
```bash
3030
$ npm install
31-
$ npm run dev
31+
$ npm run watch
3232
```
3333

3434
- `npm install` will install the required node libraries under `node_modules`. This needs to be run only once.
35-
- `npm run dev` will start the application. It is designed for an efficient development process. As you make changes to the code, the application will restart to reflect the changes immediately.
35+
- `npm run watch` will start the application. It is designed for an efficient development process. As you make changes to the code, the application will restart to reflect the changes immediately. Also, Node.js is started with the `--inspect` flag so that debugging is turned on.
3636

3737
To verify that the application is working correctly, point your browser to [http://localhost:8080/v1/accounts](http://localhost:8080/v1/accounts) - you should see a response with a list of accounts in JSON format. Since the persistence layer is in memory, the list will be empty.
3838

@@ -71,12 +71,6 @@ You can also substitute the following command instead of `npm start` to avoid a
7171

7272
node dist/index.js | bunyan -o short
7373

74-
Debugging the application
75-
-------------------------
76-
To debug the application start node with `--inspect` option
77-
78-
$ node --inspect dist/index.js | bunyan -o short
79-
8074
Folder Structure
8175
----------------
8276

0 commit comments

Comments
 (0)