Skip to content

Komodo-Turing/komodo_backend

Repository files navigation

Screen Shot 2022-01-13 at 5 07 48 PM

rails-badge ruby-badge

One of the most effective ways of preventing substance overuse is to make sure someone stays with you while you use a substance. This, however, is not always an option for everybody. This Rails App (FE deployed endpoint) (BE deployed endpoint) was created in hopes of mitigating this issue. It lets a client create emergency contacts and start a timer when they are about to use a substance. If the timer is not stopped before it runs out, it will text their contacts with the client's address, map and other information pre-created by the client.

What can I do on Komodo?

  • Sign up and sign in using Google OAuth 2.0
  • Create emergency contacts with their name and phone number
  • Create timers with information such as:
    • Duration in minutes (the only required information)
    • Substance
    • Dosage
    • Entry Instructions and other notes
  • Start a timer
  • Cancel the timer before it goes off

Stack

  • Ruby on Rails, RSpec, Heroku, CircleCI, PostgreSQL, Sidekiq
  • Some of the gems: redis, pry, simplecov, vcr, webmock

Readme Content

Local Setup.

  • Versions
    • Rails 5.2.6
    • Ruby 2.7.2
  • Fork and clone the repository
  • cd in your local repo version and run the following commands
    • To install gems:
      • bundle (if this fails, try to bundle update and then retry)
    • This API uses a few external APIs
      • Add a local application.yml file at the root (this will be ignored in gitcoverage)
      • Sign up for a free Twilio account Twilio
      • Get an API key for Mapquest
      • Add to your application.yml config:
        mapquest_api_key: your_key_here
      
    • To setup database:
      • rails db:create
      • rails db:migrate
      • rails db:seed
  • Run your own development server:
    • rails s
    • BackEnd local server address is: "http://localhost:3000"
    • Run the Redis server with redis-server
    • Run Sidekiq with bundle exec sidekiq

External APIs

This API consumes the following APIs:

Database Schema

Screen Shot 2022-01-13 at 5 00 21 PM

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages