Made using hapi.js and uses mysql as database.
- npm install
- npm install mocha -g
Run
- gulp build (build ts files)
- gulp develop (losks for any file changes and rebuilds the project)
- gulp tslint (run tslint)
- gulp test (run tests and builds)
- gulp watch (watch ts files)
- npm run start (start the application)
- npm run watch (restart the application when files change)
We are using nginx
for proxying localhost:5000
to localhost/api
.
You need to configure your nginx
first. The nginx config can be found in src/config/nginx.dev.config
.
When the code is running, documentation is accessible at localhost/api/docs
.
master
is our holy grail.master
and onlymaster
will ever be deployed to production environment.staging
is our staging branch (after we have perfected our code). We will create a pull request fromdev
tostaging
after perfecting the code in thedev
branch.- We will always write code in the
dev
branch . After finishing the code for a particular feature we will create a pull request fromdev
tostaging
.
- All the development will take place in
dev
branch. When starting a new branch, pull the new branch fromstaging
branch which will have the most stable code. - Create a pull request from the
dev
tostaging
which will be reviewed before merging. - After being merged into
staging
, we will deploy it to staging environment.
We will make sure to have frequent merges from staging
to master
and release stuff into production
I have never met a man so ignorant that I couldn't learn something from him. ~ Galileo