Skip to content

tamu-edu-students/csce606-ELRC-OLEI_Project

 
 

Repository files navigation

Link to the Team Working Agreement: https://drive.google.com/file/d/16uUZbFhEMnh5MCQcVUXWtCvOM4edJY95/view?usp=sharing


Deployed app link:

https://elrc-6ad76821be30.herokuapp.com/


Readme:

rubocop

Table of Contents

Getting Started

Prerequisites

Installation

Clone repository

git clone https://github.com/tamu-edu-students/csce606-ELRC-OLEI_Project.git

Install all dependencies

cd csce606-ELRC-OLEI_Project/rails_root
bundle install

Usage

Run locally

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

Run tests

Setup test database

rails db:test:prepare

Run rspec tests

bundle exec rspec

Run cucumber tests

bundle exec cucumber

Deploy

Create Heroku application

heroku create <app_name>

Add buildpacks

heroku buildpacks:add https://github.com/timanovsky/subdir-heroku-buildpack.git --app <app-name>
heroku buildpacks:add heroku/ruby --app <app-name>

Add config vars

heroku config:set PROJECT_PATH=rails_root --app <app-name>
heroku config:set RAILS_MASTER_KEY=<master key here> --app <app-name>

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)

  1. Set up secrets.RAILS_MASTER_KEY in your project Github Repository
  2. Set up secrets.GIST_SECRET in your project Github Repository by valid token with gist scope
  3. Set up secrets.GIST_ID (Create your own gist, and set up the gist ID in your project Github Repository)

Contacts

About

ELRC | Synergistic Leadership Theory Project Repository

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 69.9%
  • HTML 16.4%
  • Gherkin 4.6%
  • JavaScript 4.3%
  • CSS 3.7%
  • Dockerfile 0.7%
  • Other 0.4%