keinydev / Ridefy

JSON RESTful API, for a small ride-hailing service build with Sinatra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ridefy

JSON RESTful API, for a small ride-hailing service build with Sinatra and PostgreSQL

Api Documentation

Apiary doc

Diagram

Api design

Previous configurations

  • Create a .env file and add this variables
SINATRA_ENV=development
RACK_ENV=development
WOMPI_URL=test_url
WOMPI_PRIVATE_KEY=your_key
  • Copy database.yml.example inside config folder and replace the data

Install the gems needed

run

bundle install

Run Database

Create a database

rake db:create

Create migrations

rake db:migrate

Load fake data

rake db:seed

Run Test

Run tests

rspec spec

Run App

Execute the console

ruby app.rb

About

JSON RESTful API, for a small ride-hailing service build with Sinatra


Languages

Language:Ruby 89.4%Language:API Blueprint 10.6%