NOTE: moved into monorepo at https://github.com/savilabs/launchpad
The LaunchPad API application is a Ruby on Rails application. It handles managing the data and serving the API for the web application.
- Install Ruby version specified in the Gemfile
- Install PostgreSQL and follow instructions for getting it running -
brew install postgresql - Clone the repository -
git clone git@github.com:savilabs/launchpad-api.git - Install Bundler -
gem install bundler - Install Foreman -
gem install foreman - Install the Ruby dependencies -
bundle install - Setup the database -
bin/rake db:setup
Start the application with foreman start
The test suite uses RSpec. Run the test suite with bin/rake.
There's a bin/deploy script to make creating releases as simple as possible.
Here's an overview of the commands:
bin/deploy-- deploy to Staging from the current branchbin/deploy -m-- deploy, run migrations, and restart the appbin/deploy -r-- check out the master branch, create a release tag, and deploy to Production
Any command can be run with the -d flag to output the commands that would be
run without actually running them to see what's planned to be run.