- Node.js
- Bower (Install by running
npm install -g bower
) - Heroku toolbelt
- Install npm packages, run
npm install
- Also installs the bower front-end packages in client/bower_components
- Start the server, run
heroku local
(runs npm start with heroku configs)
- Initializes the local database if it does not exist
- Runs the app/server at http://localhost:5000
- Runs a local instance of the app as if it were hosted on heroku (more info)
- Run all database seeders, run
sequelize db:seed:all
- Runs all database seeds located in the server/seeders folder
- This only needs to be run once per database instance unless new seeds are added
In order to test the upload functionality, you will need to create an Amazon AWS S3 instance.
TODO: Add instructions for creating Amazon AWS S3 instance, privacy settings, etc.
TODO: Add instructions for creating the .env
heroku app settings configuration file
- Push code onto Heroku
- By connecting GitHub or pushing to Heroku git.
- Add a Heroku Postgres database add-on
- This sets a config variable, DATABASE_URL
- Set config variables
- AWS_ACCESS_KEY: AWS account access key
- AWS_SECRET_KEY: AWS account secret key
- AWS_S3_BUCKET: AWS S3 bucket name
- JWT_SECRET: JWT token secret
- Seed the database, run
heroku run sequelize db:seed:all