Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chitter Challenge #222

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Chitter Challenge #222

wants to merge 2 commits into from

Conversation

jkgiwa
Copy link

@jkgiwa jkgiwa commented Apr 4, 2022

Your name

Please write your full name here to make it easier to find your pull request.

User stories

Please list which user stories you've implemented (delete the ones that don't apply).

  • User story 1: "I want to see all the messages (peeps) in a browser"
  • User story 2: "I want to post a message (peep) to chitter"
  • User story 3: "I want to see the date the message was posted"
  • User story 4: "I want to see a list of peeps in reverse chronological order"
  • User story 5: "I want to filter on a specific keyword"

README checklist

Does your README contains instructions for

  • how to install,
  • how to run,
  • and how to test your code?

Here is a pill that can help you write a great README!

@@ -0,0 +1,29 @@
require 'pg'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detail: class names should always start with a capital letter

end

get '/peeps' do
Chitter.add

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This route should return a template that shows the user all of the peeps in the database. That means you'll need to use Peep.all at some point.

@EdwardAndress
Copy link

Hi there! You've made a decent start to this challenge but there are a few lines that will, I think, throw errors. For example there is no Chitter.add method as far as I can see, so line 14 of app.rb will throw an error.

Speculating a little...

I think that you might be trying to build the whole application at once, which is always going to be hard, even for experienced developers. Everything will become much easier if you can get into the habit of building applications in very small steps, validating each one as you go. The process workshops which get run from time to time are an excellent place to practice this.

I hope this makes sense and is helpful. If you have any questions, please reach out to me on Slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants