This is the Ruby on Rails API for Pit Stop. Pit Stop is a travel journal web application that changes the way users remember their trips. Instead of creating daily journal entries, users add places they visited on a trip and create reflections on those places. This was inspired by the idea of memory space (Les Lieux de Mémoire) in that our memories are often tied to the places we have been.
Before cloning down, you will need Ruby on Rails and Postgres.
- Install Ruby with Homebrew
brew install Ruby
- Install Rails
gem install rails
- Install PostgreSQL with Homebrew
brew install postgresql
- Sign up for a free Cloudinary account
- Clone this repo and cd into the folder
- Bundle install to get all required dependencies
bundle install
- Install Figaro via the Terminal (which creates the
application.yaml
file and adds it to .gitignore)
bundle exec figaro install
- Go to
./config/application.yml
and add your Cloudinary cloud_name, api_key, and api_secret
cloudinary_cloud_name: "sample"
cloudinary_api_key: "sample"
cloudinary_api_secret: "sample"
- Set up the PostgreSQL database
rails db:create
- Create migrations and seed
rails db:migrate
rails db:seed
- Launch the rails server!
rails s
I would like to thank:
- Sylwia Vargas
- Eric Kim
- Annie Zheng
- the Code Bender Cohort