Make sure you have OpenBTSCLI
in root's path, which can be done by making a symlink in /usr/local/bin
-
Clone this repo and navigate into the code directory with Terminal.
-
Run npm install to get all required libraries.
npm install
-
Start server with foreman start.
foreman start
Foreman reads your .env file, populates the process.env object for use in your app.
-
Open web browser to http://localhost:5000 to view the web app.
-
Stop the web server press Command+C in the Terminal window.
To auto restart your development server after you make some changes to your code. Install Nodemon. Nodemon will watch your files and restart the server for you.
Install Nodemon. In Terminal type,
npm install -g nodemon
There are two possible ways to use Nodemon,
foreman run nodemon app.js
Or with the helper script
. devserver
The .nodemonignore file will ignore certain files and directories from being watched. By default and for example we're ignoring /public folder.