Skip to content

This is the server being developed for OpenBTS SMS delivery for the UNICEF grant.

Notifications You must be signed in to change notification settings

nejohnson2/telesource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js - Coffeescript - Express - EJS - Bootstrap

Make sure you have OpenBTSCLI in root's path, which can be done by making a symlink in /usr/local/bin

Getting started w/ local development server

  1. Clone this repo and navigate into the code directory with Terminal.

  2. Run npm install to get all required libraries.

    npm install

  3. Start server with foreman start.

    foreman start

Foreman reads your .env file, populates the process.env object for use in your app.

  1. Open web browser to http://localhost:5000 to view the web app.

  2. Stop the web server press Command+C in the Terminal window.

Auto restart development server

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.

About

This is the server being developed for OpenBTS SMS delivery for the UNICEF grant.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published