Coder Social home page Coder Social logo

chitter-challenge-apprenticeships's Introduction

Chitter Challenge

  • Challenge time: until the end of the day
  • Feel free to use google, your notes, books etc but please work on your own
  • Please raise a pull request when you start this challenge, and keep pushing updates as and when you make commits throughout the day
  • There is no expectation to finish all or any of the user stories, please use this time to reflect on where you feel you are with the skill and what may support your learning.
  • If you get blocked, please reflect on what blocked you and any strategies you adopted that helped you make progress.

We are going to write a small Twitter clone that will allow the users to post messages to a public stream.

Set up

To setup the database:

  • Connect to psql
  • Create the database using the psql command CREATE DATABASE chitter;
  • Connect to the database using the psql command \c chitter;
  • Run the query we have saved in the file 01_create_chitter_table.sql
  • Populate your table with a row by running INSERT INTO peeps (message) values ('This is a peep!');

To check you have everything set up ok, please take a look at the peeps table inside the chitter database. You should see one row in there.

To setup the test database:

  • Connect to psql

  • Create the database using the psql command CREATE DATABASE chitter_test;;

  • Connect to the database using the psql command \c chitter_test

  • Run the query we have saved in the file 01_create_chitter_table.sql

  • bundle install

  • rspec

You should see 1 passing test.

User stories

As a Maker
So that I can see what people are doing
I want to see all the messages (peeps)
in a browser
As a Maker
So that I can let people know what I am doing  
I want to post a message (peep) to chitter
As a Maker
So that I can see when people are doing things
I want to see the date the message was posted

(Hint the database table will need to change to store the date too)

As a Maker
So that I can easily see the latest peeps
I want to see a list of peeps in reverse chronological order
As a Maker
So that I can find relevant peeps
I want to filter on a specific keyword

chitter-challenge-apprenticeships's People

Contributors

jamesjoshuahill avatar leoht avatar neoeno avatar oceansize avatar siellsiell 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.