Giter Site home page Giter Site 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

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

Watchers

 avatar  avatar  avatar  avatar  avatar

scribble's Issues

Who knew the FBI loves lemon chiffon as well?

Comfort_Level: 3
Completeness: 3

https://wdi6-donus-scribblr.herokuapp.com/
https://github.com/karldonus/scribbler

Observations: Hand-rolled authentication rather than used Devise to have a better understanding of the process. Caused a few headaches, but relatively workable. Would like to change comments view's display of user_id integer to username string. Working for Post, but not comment. Also, I'd like to display the user who most recently edited the post within the edit view…unfortunately that may need to track two foreign_ids (one for creation and one for edit). It's gotten to the point of continuing to code will do more harm than good. I'll start on pin lab to have a fresh outlook.

Scribble blog

comfort 3:
complete:3.5

https://github.com/KevCole/scribble_blog

Issues: Had trouble with adding users and doing the nested routes. My paths were wrong after I added users.

Was getting this error for an hour while trying to deploy
t=error code=H10 desc="App crashed" method=GET path="/"

Plan on deploying early and ofte for project 2.

Cameron's Scribble Submission

Link to repo: https://github.com/cameronfry11/Scribble/tree/cameron_solution

Link to deployed site (Also in ReadMe): https://thebombscribble.herokuapp.com

comfort: 3.5/5

completeness: 4/5

I still had styling left to do to contain the paragraph elements and comments when they are added to the page. I wanted to try the lab to hit on some of the hard skill concepts from the week and to get some repetition practice in with setting up a rails app. I'll come back to scribble and update when I get some extra time.

Sinatra on Rails

Heroku Deployment: http://sinatra-on-rails.herokuapp.com/
Github Repo: https://github.com/jkoul/scribble

Comfort: 4
Completeness: 4.5

Clearly, I deviated from the "Scribble" model completely, instead drawing inspiration from our development beyond Sinatra as an MVC framework and producing a tribute to Frank Sinatra. I feel pretty strong regarding most the pieces we've learned, but am still struggling CSS and am weak on some of the particulars related to working with helpers.

Scribble Diary

Comfort: 4
Completeness: 4.5

https://kg-scribble.herokuapp.com/sign_in
https://github.com/kristingreenslit/scribble

The app is fully functional except that when a comment is created it successfully saves to the db but does appear next to the corresponding post. Given more time I would spend time debugging the issue. It appears I need to reference the comments in the model for posts.

Some other future edits:
(1) View any blog post without requiring a user to log in
(2) Require all form fields in posts and comments to be filled out correctly before data is saved to the db
(3) Add more CSS to enhance the user experience

Scribble Blog

https://pd-scribble-blog.herokuapp.com/

Deployed! Thanks to Erik for the help with CSS + external fonts - you have to change the URL to https in the layout for it to work.

Could have spent more time on CSS but overall I'm very happy with the functionality.

can't link my repo

I generated this project via rails on my local computer and pushed it to my personal account. I don't know how to link it to this master repo (since it was generated "from scratch" via rails...). At any rate I was unable to get it to work since adding the authentication this morning. (It worked temporarily but I have since broken it and am completely lost.) Here is the link to my version (called Blog1.) I am completely lost with rails and fear this may be my last week...

https://github.com/tomBeach/blog1

comfortLevel: 0
completeness: 1

Scribble Blog

Comfort level: 3- thanks to poor committing practices I had to redo this assignment from scratch several times when I hit an error that I could not resolve that seemed to be based on how I set everything up.

Completeness: 3- i was able to add comments but somehow I did something and it is no longer working. In some instances I had trouble with "link_to" so I used <href a>. I am glad that I had a chance to play around with the CSS because I was not sure how I could add tags on the views pages.

Link to Heroku https://scribble-blog-lisa.herokuapp.com/

Here's the link to my repo. It does not completely match what is on Heroku. I think I committed and pushed something to Heroku that was not committed and used to GitHub but now the version on my laptop is not working correctly so I can't push it. I do not completely understand master branch and and Heroku branch. I tried to set up a workflow using branches on this project but I did not stick to it. On the bright side I successfully merged 2 branches without any errors (small win).

scribbler on heroku

comfort_level: 3
completeness: 3

deployed on heroku at: laura-scribbler.heroku.com
github project name is: scribbler-myblog.

Scribble

Comfort: 3.5
Completeness: 3.5

I learned a lot from working on this project. I think that was more helpful to me to work on this project over the course of the week and to implement everything we learned this week into one assignment than it is to complete individual homework assignments each night. Implementing many lessons into one assignment helped me see how the pieces fit together. It also seems like this style of hw will prepare us better for our projects and is more similar to what we'll be doing post-WDI.

There are some aspects of this project that I was not able to complete in time, but I would like to come back to this project and finish it later. It was really helpful to get to continue working on this on Friday in place of the lab.

https://github.com/leighvarley/scribble

https://leigh-scribbler.herokuapp.com/

scribblr app

comfort_level: 4
completeness: 5

app: https://scribblr-bluth.herokuapp.com
repo: https://github.com/arkinjb/scribble

My app is complete as far as all the functionality we've learned so far. I tried adding user roles and authorization but got completely lost. It's also missing a couple of extra things like user profile forms.
Getting pretty comfortable with the rMVC process and implementation. Still need to refer to notes/stack overflow a lot.

Homework - Scribble

Link: https://wdi-dc6-scribble-malissa.herokuapp.com/
Repo: https://github.com/malissaromero/scribble

Completeness: 5
Comfort Level: 3

I had so much fun doing this assignment this week. I enjoyed seeing progress in my app every day. I felt like I learned so much. I was able to do more than CRUD. I worked with others to add things to my app such as any one could see the posts but could only do CRUD as a user. Every user could see all the posts but could not edit, update or delete another user's posts and comments. I also wanted to make a my posts link so that each user can see their own posts but I didn't have enough time so I just commented it out. Adrian also taught me that you could go backwards when referencing a action. (@comment.post.user_id) It literally blew my mind.

Error with migration of db/seeds.rb in Scribble.

My postgres elephant is present.
I run rake db:drop and then rake db:create... okay, I have my scribbler_db listed in postgres when I do \l.
I run rake db:migrate ... long pause when executed, but no long equal signs ======.
I run rake db:schema:dump...
then I run rake db:seed and I get a long error, with this (I believe to be the important part):
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "comments" does not exist
LINE 1: SELECT "comments".* FROM "comments
^
: SELECT "comments".* FROM "comments"

Then after that if I run "remigrate" I get a long pause, but during that pause, I can see that the schema file is attempting to have some data written to it, because (I have Atom open) the schema file flashes the color that it is set to have when there are files with unsaved github changes. However, none of the changes stick. So I think there is an error with my seeds.rb file that is not enabling rails to run the smart stuff that it does to create the tables in the schema file.

My Scribble Blog

https://lons-scribble-app.herokuapp.com/

comfort: 4
I feel pretty good about the functionality of the site, minus the users and authentication. I added some styles and am pleased with the minimal look.

completeness: 4
I was not able to add sessions (i.e., user authentication and associating posts with a user model). My intention was to wait until the other features were functioning, then open up a new branch experiment, but ran out of time.

scribble on heroku hw

https://adrians-scribble.herokuapp.com

comfort level = 3
completeness = 3

Did my best - a whole day's worth, it seemed - to get user and authentication going, but no joy. Only got as far as seeing the sign-in page and fields. Otherwise, had problem and never figured out a few broken routes around comments edits. Left styling until last hour or so; I will really need to find time somewhere, somehow to get a basic functional command of it. Really grinding metal on metal at this point; feel like I explored every outer limit of my knowledge and ability. Still a lot of work and practice to do.

scribble HW

Understanding material: 4 (getting concepts)
Comfort: 3.5 (actually making the stuff)
Completeness: 5

github: https://github.com/omarimayerswalker/scribble_final
heroku: https://omari-scribble-final.herokuapp.com/

I got it done but I still don't feel comfortable with troubleshooting bugs. Some how I didn't create my db with postgresql, so I had problems deploying. I'm not comfortable with how much copy and pasting I did to complete this, but I am getting more comfortable with the overall process.

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.