Prerequisite | How to check | How to install |
---|---|---|
Node.js 4.2.x | node -v |
nodejs.org |
gulp >= 3.9.x | gulp -v |
npm install -g gulp |
Bower >= 1.7.x | bower -v |
npm install -g bower |
- Install gulp and Bower globally with
npm install -g gulp bower
- Navigate to the project directory, then run
npm install
- Run
bower install
gulp
— Starts local server, browser sync, and compile assets when files changegulp build
— Starts local server, browser sync, and compile assets when files changegulp jshint
— Checks Javascript errors across various filesgulp build
— Compiles Sass, Minifies JS, Minifies Images, Build Pack
- Name your feature branch beginning with your initials (ex. ch-case-study)
- Lowercase only
- Dashes only
- No Underlines
- No Camel Case (branchName, BranchName)
- No Snake Case (branch_name)
- No Spaces
- Create a branch using the guidelines mentioned above.
- Commit and Push your code. (Make frequent commits. Don't commit broken features/code)
- Create a pull request by selecting your branch on left and master on right.
- Click on "Create Pull Request"
- Find the desired bower package bower.io
- Run
bower install [PACKAGE_NAME] --save
- Find the required CSS/JS files from bower_components folder
- Include the required files in
assets.js
- Restart Server
The app is deployed on Heroku. There are two environments set up there: staging and production. They are hosted at two separate URLs:
- Staging: https://usax-staging.herokuapp.com
- Production: https://usax-production.herokuapp.com
Whenever you push master, the app will automatically be deployed to staging. This is happening via a continuous integration service, CircleCI, which is also set up for the app.
Of course, sometimes you may need to deploy the app manually, so for that, read the next section.
The app is deployed on Heroku. In order to deploy the site, you need to create an account first. Once you've created an account, run:
heroku login
and enter your credentials.
Next, you need to ask to be added to the app itself. Post a message in Slack and we'll get you squared away.
Now you can add remotes that will enable you to deploy to staging and production:
heroku git:remote -r staging -a usax-staging
heroku git:remote -r production -a usax-production
Finally, depending on which environment you want to deploy, run one of these commands:
heroku push staging master
heroku push production master