JSON RESTful API, for a small ride-hailing service build with Sinatra and PostgreSQL
- 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
run
bundle install
Create a database
rake db:create
Create migrations
rake db:migrate
Load fake data
rake db:seed
Run tests
rspec spec
Execute the console
ruby app.rb