During development, you can use `npm run watch` to cause any update you make to files in either `./static` or `./src` to trigger a rebuild of the project.
### To Run
### To Run
```bash
```bash
npm start
npm start
```
```
or to start and watch at once
During development, `npm start` watches any update you make to files in either `./static` or `./src` and triggers a rebuild of the project. In development the build is stored in memory, and not served from the `./build` directory.
```bash
npm run dev
```
Once running, open `http://localhost:8333` in your browser. If you wish to have the server reload automatically, you can install either [nodemon](https://github.com/remy/nodemon) or [forever](https://github.com/foreverjs/forever).
Once running, open `http://localhost:8333` in your browser. If you wish to have the server reload automatically, you can install either [nodemon](https://github.com/remy/nodemon) or [forever](https://github.com/foreverjs/forever).
### To stop
### To stop
```bash
Use `^C` to stop the node process `npm start` starts.
# Stops all `start` and `watch` processes
npm stop
```
#### Configuration
#### Configuration
`npm start`and `npm run watch`can be configured with the following environment variables
`npm start` can be configured with the following environment variables