Back End Repo: https://github.com/ggerdsen/Back-End
Microservice Repo: https://github.com/ggerdsen/Sinatra-Microservice-for-Classroom-Wars
-
The main purpose of this repo is to serve as the frontend to the larger group project we're calling "Classroom Wars". The GitHub repo's can all be found here.
-
The inception of Classroom Wars came from the brilliant minds of some of the contributors of this project who, in a previous life, were teachers. They saw classrooms (especially remote classromms) inadequately using technology to engage students. This project seeks to remedy that issue.
-
The entire app is split into 3 repo's: Front-End, Back-End, and Sinatra. The front-end is responsible for the views that the user sees, as well as initiating the process of making API calls and database queries. The database exists on the back-end, and the actual API calls are made in the back-end as well.
-
One of the first design decisions was to split API calls into facades (where the API methods are called, and objects created if needed) and services (where the API's are actually called). This adheres more to the single line responsbility principle.
- Follow the instructions below under "Set-up" to make sure you've got the correct environments
- Make sure you have the correct Ruby version installed (2.5.3). To check your Ruby version, from your command line, run
ruby -v
- If you do not have the correct version, follow the instructions to install 2.5.3: from the command line, run
rbenv install 2.5.3
- Make sure you have the correct Rails version installed (5.2.4.3). To check your Rails version, from your command line, run
rails -v
- If you do not have the correct Rails version, follow these instructions to install 2.5.4.3
- Fork and Clone this repo
- Install gem packages:
bundle install - Setup the database:
rails db:create - Register with Google Api Console and follow steps for consent
- Add a Credential, select external use, web application, give your usage a title (like Google Login) and add this uri to the redirect field (LOCAL)
http://localhost:3001/auth/google_oauth2/callbackor (PRODUCTION)sleepy-forest-61862.herokuapp.co/auth/google_oauth2/callback - You will be given a client id and client secret, see below
- Run:
bundle exec figaro installand the following information as environment variables
GOOGLE_CLIENT_ID: <add your client id>
GOOGLE_CLIENT_SECRET: <add your client secret>
CLASS_WARS_DOMAIN: <add your backend server>- For our backend server, please use (LOCAL)
http://localhost:3000or (PRODUCTION)http://polar-anchorage-12813.herokuapp.com
- From Sinatra, run:
rackup -p 4567 - From Back End, run:
rails s - From Front End, run:
rails s -p 3001 - From your browser, go to:
http://localhost:3001
In no particular order...
Mariveliz Arique Ortiz
Cam Chery
Christopher Allbritton
Corey Carter
Dan Halverson
Garrett Gerdsen
Judith Pillado
Tyler Fields
Pryia Power
Saryn Mooney
Phillip DeFraties
Travis McKinstry