Inspired by the present moment I chose to model my domain on popular petition websites like Change.org and MoveOn.org
A user can join manually via the form or through an OAuth strategy via Facebook.
From onboarding they can create petitions and sign the authored_petitions of other users. Signatures act as joins between users and petitions with extra fields of a message and boolean that determines whether your name and message are displayed in association with a petition that you’ve signed.
- Ruby on Rails (RESTful routes)
- Facebook OmniAuth Gem
- clone this repo onto your machine
bundle exec installto download/install dependencies
- change any environment variables in your deployment environmont or from your own
.envfile that you create in the root folder (in particular any environment variables having to do with Facebook OAuth)
rails db:create && rails db:migrateto create and set up your PostgreSQL schema
- I've provided some seed data in
seeds.rb, but feel free to change this to make it your own: run
rails db:seedto seed DB from said file
- start server with
rails s --binding=0.0.0.0to access app from another device on your local network
- add more tests