This simple application includes Ruby/Rails technology which we use at Flatstack for new REST API projects. Application currently based on Rails 5 stable branch and Ruby 2.5.1
- puma as Rails web server
- dotenv - load environment variables from
.env
- factory bot - create test data
- faker - generate fake data
- rspec api documentation - generate pretty API docs
- rspec - awesome, readable isolation testing
- shoulda matchers - frequently needed Rails and RSpec matchers
bin/setup
- build Docker image and prepare DBbin/server
- to run server locallybin/ci
- runs RSpec tests and quality tools
Clone application as new project with original repository named "place-to-park-api"
git clone git://github.com/ezedepetris/place-to-park-api.git --origin place-to-park-api [MY-NEW-PROJECT]
Create your new repo on GitHub and push master into it. Make sure master branch is tracking origin repo.
git remote add origin git@github.com:[MY-GITHUB-ACCOUNT]/[MY-NEW-PROJECT].git
git push -u origin master
Run setup script
bin/setup
Make sure all test are green
bin/ci