This repository represents the backend portion of a capstone project for the Turing School of Software & Design.
Garden-Share is an application designed to function as a produce swap meet...
All of the repositories that make up this project can be found here
Garden-Share utilizes a service-orriented architecture to ensure future scalability.
The back-end is written primarily in Ruby on Rails/GrahphQL and deployed via Heroku
The front-end is written primarily in JavaScript/Node.js and is deployed via [Heroku](FE URL Needed!)
The microservice is written primarily in Python/Flask and is deployed via Heroku
To see all available endpoints the Garden-Share-BE.postman_collection.json
file (located in the root directory) can be imported into Postman.
These setup instructions are for Mac OS.
This project requires the use of Ruby 2.5.3
and Rails 5.2.4.3
.
We also use PostgreSQL
as our database.
-
Verify your machine has the correct version of Ruby installed (2.5.3). You can check this by entering
ruby -v
from the command line.- To install, enter
rbenv install 2.5.3
from the command line.
- To install, enter
-
Verify your machine has the correct version of Rails installed (5.2.4.3). You can check this by entering
rails -v
from the command line.- To install, enter
gem install rails -v 5.2.3
from the command line.
- To install, enter
- Fork & Clone Repo
- Run
bundle install
. - From the command line, install gems and set up your DB:
bundle install
rails db:create
rails db:migrate
- Install Figaro with
bundle exec figaro install
to create an application.yml file locally - Add
ZIPCODE_MICROSERVICE_BASE_URL: 'https://garden-share-be.herokuapp.com/'
to the application.yml file
This app utilizes Travis CI for integrated testing.
Run the test suite with bundle exec rspec
For local deployment run your development server with rails s
and visit localhost:3000 to see the app in action.
For accessing the microservice you can run rails s
and visit localhost:3001 and include ZIPCODE_MICROSERVICE_BASE_URL: 'http://localhost:3001/'
in the application.yml file
Garden Share is deployed remotely via Heroku
- Aaron Townsend - Turing Student - GitHub Profile - LinkedIn
- Bruce Gordon - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Chadrick Dickerson - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Christopher Allbritton - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Dani Coleman - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Joshua Carey - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn