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.
masteris our holy grail.masterand onlymasterwill ever be deployed to production environment.stagingis our staging branch (after we have perfected our code). We will create a pull request fromdevtostagingafter perfecting the code in thedevbranch.- We will always write code in the
devbranch . After finishing the code for a particular feature we will create a pull request fromdevtostaging.
- All the development will take place in
devbranch. When starting a new branch, pull the new branch fromstagingbranch which will have the most stable code. - Create a pull request from the
devtostagingwhich 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