SEER Labs
Back-End
- Ruby on Rails
- postgres
Front-End
- HTML
- CSS
- BootStrap
- JavaScript
- jQuery
- AJAX
Rails and GEM
- Rails version 6.0.3.3
- Ruby version 2.7.0
- RubyGems version 3.1.4
- Rack version 2.2.3
- Database Adapter postgresql
- Omniauth-google-oauth2 0.8.0
Database
- PostgreSQL (8.4+) via pg (0.18.4) gem
DevOps
- Docker 20.10.0
- Docker Compose 1.27.4
- All the
coderequired to get started
- Clone this repo to your local machine using
git clone https://github.com/kbuffardi/CodeWitUs.git
$ cd CodeWitUsGoogle OAuth
- Create a .env file in the root directory of your app.
- Add the following code to the file.
GOOGLE_CLIENT_ID=Your client id
GOOGLE_CLIENT_SECRET=Your client secret
Now Install all project requirements
$ bundle installNow create database, migrate database
Make changes in
config/database.ymlfile and set your SQL database credentials.
$ rails db:create$ rails db:migrateNow
Start Server
$ rails sBrower
http://localhost:3000/loginFirst update the Spring configuration to ensure installation of Bundler 2.1.4 within
the Docker containers: vim bin/spring
unless defined?(Spring)
gem 'bundler', '2.1.4' #Fix Docker use of 2.1.2, via: https://github.com/rubygems/rubygems/issues/3257Build the Compose image that links the web server with the database:
docker-compose buildLaunching locally:
docker-compose upAnd then visit the local server in your web browser.
After the containers are running, execute command for interactive mode in a new terminal:
docker-compose exec web shOr run a new copy of the container with:
docker-compose run web shReplace web with db for interacting with only the database container
To get started.
-
🍴 Fork this repo!
-
💻 Clone this repo to your local machine using
https://github.com/kbuffardi/CodeWitUs.git -
🔃 Create a new pull request using
https://github.com/kbuffardi/CodeWitUs.