Link to the Team Working Agreement: https://drive.google.com/file/d/16uUZbFhEMnh5MCQcVUXWtCvOM4edJY95/view?usp=sharing
https://elrc-6ad76821be30.herokuapp.com/
Table of Contents
Clone repository
git clone git@github.com:tamu-edu-students/csce606-ELRC-OLEI_Project.git
Install all dependencies
cd csce606-ELRC-OLEI_Project/rails_root
bundle install
Create master key (obtain master key either via Dr.Ritchey or by emailing team members in contact section)
cd rails_root
echo "<master key here>" > ./config/master.key
Running database locally
bundle config set --local without 'production'
(Using SQLite only otherwise brew install pg
)
Generate database
rails db:migrate
rails db:seed
Start server
rails server
Setup test database
rails db:test:prepare
Run rspec tests
bundle exec rspec
Run cucumber tests
bundle exec cucumber
Create Heroku application
heroku create [appname]
Add buildpacks
heroku buildpacks:add https://github.com/timanovsky/subdir-heroku-buildpack.git
heroku buildpacks:add heroku/ruby
Add config vars
heroku config:set PROJECT_PATH=rails_root
heroku config:set RAILS_MASTER_KEY=<master key here>
Install Heroku Postgres and attach to application
Push to heroku app
git push heroku main
Generate database
heroku run rails db:migrate
heroku run rails db:seed
Github Integration with Heroku
Set up Github Action (Different from Github Integration with Heroku)
- Set up
secrets.RAILS_MASTER_KEY
in your project Github Repository - Set up
secrets.GIST_SECRET
in your project Github Repository by valid token with gist scope - Set up
secrets.GIST_ID
(Create your own gist, and set up the gist ID in your project Github Repository)
- Chih-Chuan Hsu agenuinedream@tamu.edu
- Kunal Somendrasingh
- Manoj Gurram
- Manoj Peta
- Sai Aakarsh Padma
- Sai Nithin
- Vinayaka Hegde
- Legacy Code