This is the sample service to use as a starting point for building an API with node.js
- Create a
.env
file similar to the.env.sample
file for RabbitMQ. - Run the below commands
$ npm install
$ npm start
- Requires Node version 6.11 or greater installed
$ npm test
# to execute test on file changes
$ npm run test:watch
In order to leverage the latest language features, we are using Babel to transpile our code to ES5 in order to ensure backwards compatibility with older versions of node.js.
npm run build
- On Linux/Unix
- Use a process manager to serve up the application.
pm2
orforever
- Use a process manager to serve up the application.
- On Windows Server
- If the application is being run on a windows server,
iismode
is a required dependency that would need to be installed on that machine. Include theiisnode.yml
andWeb.config
so that IIS can serve the app
- If the application is being run on a windows server,
Send us a pull request on [bitbucket]
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Ashley Narcisse