Family Stories is our cross-pollination group project for Module 4 of 4 at the Turing School of Software & Design.
This repository is backend only and includes the following tech: Ruby on Rails & PostgreSQL. Our frontend can be found at https://github.com/dylhof/family-stories.
To run Family Stories on your local machine, navigate to the directory in which you would like the project to be located, then execute the following commands:
$ git clone [email protected]:le3ah/sweata_weatha.git
$ cd family_stories
$ bundle
$ rails g rspec:install
$ rails db:create
$ rails db:migrate
$ rails db:seed
In order to see that the backend data is working appropriately, take the rails server for a spin! Just type rails s
in your terminal, and you should be able to find our backend APIs at http://localhost:3000/api/v1/families
We ran our tests using rspec
and followed our coverage percentage with SimpleCov.
We used serializers to affect our response data:
class StorySerializer
include FastJsonapi::ObjectSerializer
attributes :title, :content, :author
belongs_to :family
end
We did modify our schema slightly, but for our brainstorming, we used the following as our database breakdown:
http://backend.turing.io/module4/projects/cross_pollination/cross_pollination_spec