Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

nason/bridgely-api

Repository files navigation

Bridgely API

This is a work in progress, and my first Rails app! Pull requests would be awesome.

This is the backend API for Bridgely. See more about this project at http://github.com/nason/bridgely

Environment variables must be configured for Bridgely-API to communicate with Twilio. See the configuration section below.

Ruby version

2.0.0

Stack

  • Rails 4
  • Rails-API
  • Active Model Serializers
  • Twilio-Ruby
  • Devise
  • BCrypt-Ruby
  • Figaro
  • PostgreSQL

Configuration

  1. bundle install

  2. Create a new application.yml file in the config folder - 'touch config/application.yml'

  3. Add application configuration variables here, as shown below: TWILIO_SID: "123abc" TWILIO_AUTH_TOKEN: "abc123" TWILIO_APP_SID: "a1b2c3"

  • Note: you will need to create a Twilio app with the SMS status and SMS inbound URLs configured to point to your deployment.
  • You can group these envirionments in test, development, and production if you need
  1. If the frontend is served from the public folder you can disable CORS headers. Otherwise, leave them on and whitelist trusted origins in app/application_controller.rb

  2. Update db/seeds.rb to setup your admin user, and any companies or company users you may need to import.

Database creation

rake db:schema:load

Database initialization

rake db:seed

Services (job queues, cache servers, search engines, etc.)

Coming soon!

Deployment instructions

Make sure your environment variables are set, and rails server. You can rake figaro:heroku to push environment variables to Heroku.

SSL is highly reccomended. You'll have to configure that on your own...

Your Twilio account must be verified and funded in order for this API to send or receive any messages, or to create any subaccounts. See Twilio's pricing page for information on operating costs.

About

RESTful Rails 4 API Backend for Bridgely

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages