Code Monkey home page Code Monkey logo

family_stories's Introduction

Waffle.io - Columns and their card count

Build Status

README

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.

Getting Started

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

Testing

We ran our tests using rspec and followed our coverage percentage with SimpleCov.

Screen Shot 2019-04-10 at 1 55 10 PM

Code Snippets

We used serializers to affect our response data:

class StorySerializer
  include FastJsonapi::ObjectSerializer
  attributes :title, :content, :author
  belongs_to :family
end

Schema

We did modify our schema slightly, but for our brainstorming, we used the following as our database breakdown: IMG_7974

Rubric/Project Description

http://backend.turing.io/module4/projects/cross_pollination/cross_pollination_spec

Authors

family_stories's People

Contributors

abenetka avatar danbriechle avatar dylhof avatar le3ah avatar

Watchers

 avatar

family_stories's Issues

BE User Story 6 - Family Links

As a user, when I click on my family's name from the landing page, I am taken to my family's show page which has links to our family attributes: stories, pictures, recipes, family members.

GET /api/v1/families/id

BE User Story 5 - Landing Page

As a user, when I visit the landing page, I should see my user profile image and links to my families.

GET /api/v1/families

BE User Story 12 - Family Members

As a user, when I visit my family show page, I see a link for my family's members. When I click this link, I am taken to a page displaying the names of my family members.
GET /api/v1/families/id/family_members

BE User Story 9 - Story Show Page

As a user, when I click on the story preview from the family show page, I am taken to the detailed story on the story show page.

GET /api/v1/families/id/stories/id

BE User Story 7 - Recipes

As a user, when I select recipes from my family's show page, the recipe section expands, and I see the names of recipes belonging to my family. All recipe names are links.

GET /api/v1/families/id/recipes

BE User Story 11 - Images

As a user, when I am on the family show page, I see a link for images. When I click this link, I see the images associated with my family. The images have captions, which may contain links to other parts of our page.

GET /api/v1/families/id/images

BE User Story 8 - Stories

As a user, when I visit my family show page, I see the family stories section already expanded. The stories section includes cards containing the story previews.

GET /api/v1/families/id/stories

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.