- Git
- Node.js and npm Node ^4.2.3, npm ^2.14.7
- Gulp (
npm install --global gulp
) - MongoDB - Keep a running daemon with
mongod
-
Run
npm install
to install server dependencies. -
Run
mongod
in a separate shell to keep an instance of the MongoDB Daemon running -
Copy the file
./server/constants/app.example.json
to./server/constants/app.json
and populate the Slack app Client Id and Client secret -
Run
npm run dev
to start the development server. It should automatically open the client in your browser when ready.
Heroku builds are automatically built and deployed from the master branch to http://apitalent-people-dev.herokuapp.com/
.
These can then be promoted to the Heroku production environment http://apitalent-people.herokuapp.com/
Check the .travis.yml
for deployment config
- Build a zip version for AWS Elastic Beanstalk run
npm run build-elastic
and see the file./latest.zip
- Create a new Elastic Beanstalk application
- Create a new Elastic Beanstalk environment selecting the platform as
Node.js
and the app code as upload your own code and select thelatest.zip
you built earlier - Configure the Elastic Beanstalk environment Software Configuration with the following environment properties:
- NODE_ENV = production
- MONGODB_URI =
- SLACK_CLIENT_ID =
- SLACK_CLIENT_SECRET =