Giter VIP home page Giter VIP logo

scribble's Introduction

Scribble

Scribble is a Ruby on Rails application where users can read, write and interact with the best content all around the world. It is designed to be built, refined and deployed over the course of four nights.

We will start off with two models: Post and Comment.

Submitting

Fork this repo, and submit homework as a pull request on this repo...

$ git clone [email protected]:ga-wdi-exercises/scribble.git
$ cd scribble
$ rails new . -d postgresql

When asked if you want to overwrite the readme, enter "n" (for no).

The . creates a new Rails app inside the CURRENT folder. Otherwise, it creates a new folder. For instance, if you did rails new scribble it would create a scribble folder and put the Rails app inside there.

This is how a lot of people end up with a scribble folder inside another scribble folder.

Models + Migrations

  • Create ERD for Post and Comment
  • Create models for Post and Comment
  • Create migrations for Post and Comment

Index

  • Create an index where a user can see all posts
  • Each post should link to its respective show page

Show

  • Create a show where a user can see each individual post.
  • The show page should also show all of the post's comments.

Create

  • Allow the user to create new posts and comments

Update

  • Allow the user to edit existing posts and comments

Delete

  • Allow the user to delete existing posts and comments.

Bonus

Create two additional models: Category and Tag.

  • Tag represents the join table between Post and Category.

Update the Post show page so that it includes...

  • A linkable list of that Post's Categories.
  • When clicked, each Tag should link to its Category show page.

Create a form that allows you to create a Tag and/or Category.

  • If the Category exists, it will create a tag for that post.
  • If the Category does not yet exist, it will create that Category and create a Tag for that post.
  • If the Category exists AND the post already has that Tag, nothing will happen.

The Category show page should display all posts with that particular category.

scribble's People

Contributors

colleeno avatar ebirving avatar jshawl avatar amaseda avatar andrewsunglaekim avatar robertakarobin avatar nolds9 avatar

Watchers

 avatar

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.