Skip to content

Commit

Permalink
added installation, usage, and deployment instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres-L-Santiago authored and barnden committed Apr 18, 2024
1 parent 0cdc4d2 commit 85179a9
Showing 1 changed file with 118 additions and 12 deletions.
130 changes: 118 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,128 @@
# Synergistic Leadership Theory Survey Application

[![Test Coverage](https://api.codeclimate.com/v1/badges/62f4dd4fb092b4211973/test_coverage)](https://codeclimate.com/repos/65caed0abc0d27237b1794c9/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/62f4dd4fb092b4211973/maintainability)](https://codeclimate.com/repos/65caed0abc0d27237b1794c9/maintainability)
![rubocop](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/barnden/c7b2d5e19079e12445b300407e383294/raw/badge.json)

**All project files in rails_root**
- [Deployed Application](https://elrc-app-dfcfc7cd862b.herokuapp.com/)
- [Code Climate Reports](https://codeclimate.com/repos/65caed0abc0d27237b1794c9/maintainability)
- [GitHub Repo](https://github.com/tamu-edu-students/csce606-ELRC-Synergistic-Leadership-Theory)
- [Pivotal Tracker](https://www.pivotaltracker.com/n/projects/2690137)
- [Slack](https://app.slack.com/client/T06GRHECJEM/C06GY2R74KX)

Links
- Deployed Application
- https://elrc-app-dfcfc7cd862b.herokuapp.com/
<details open="open">
<summary>Table of Contents</summary>

- Code Climate Reports
- https://codeclimate.com/repos/65caed0abc0d27237b1794c9/maintainability
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)

- GitHub
- https://github.com/tamu-edu-students/csce606-ELRC-Synergistic-Leadership-Theory
</details>

- Pivotal Tracker
- https://www.pivotaltracker.com/n/projects/2690137
---

- Slack
- https://app.slack.com/client/T06GRHECJEM/C06GY2R74KX
## Getting Started

### Prerequisites

- [Ruby 3.3.0](https://www.ruby-lang.org/en/)
- [Rails](https://rubyonrails.org/)
- [Bundler](https://bundler.io/)
- [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)

### Installation

Clone repository

```
git clone [email protected]:tamu-edu-students/csce606-ELRC-Synergistic-Leadership-Theory.git
```

Install all dependencies

```
cd csce606-ELRC-Synergistic-Leadership-Theory/rails_root
bundle install
```

## Usage

### Run locally

Create master key

```
cd rails_root
echo "d98b20070bfcf9059926029b3a959b64" > ./config/master.key
```

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 [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=d98b20070bfcf9059926029b3a959b64
```

Install [Heroku Postgres](https://elements.heroku.com/addons/heroku-postgresql) and attach to application

Push to heroku app

```
git push heroku main
```

Generate database

```
heroku run rails db:migrate
heroku run rails db:seed
```

0 comments on commit 85179a9

Please sign in to comment.