BecaLParker's Solution to Chitter Challenge:
In honour of Quackie (the Makers' Academy rubberducky debugger), I've made a small Twitter clone that will allow users (Quackers) to post messages (Quacks) to a public stream (the Duckboard).
Here are the Class Responsibility Cards I made to plan this build.
Next steps:
There are some edgecases I still want to solve (eg. throwing friendly errors if user's message is too long).
At present there is a known bug, where quacks won't post it they have apostrophes. I plan to fix that soon.
Currently, users can post quacks as a guest quacker (i.e. entering a display name and message content).
I plan to implement more detailed login/logout functionality (requiring username/password etc.) in a later phase of the build.
Please add other suggested next steps in issues or PR comments.
I referred to the code review rubric for this challenge during my build.
I discussed Separation of Concerns with a non-Rubyist Dev @allymparker in relation to the user stories.
Integrated database using the PG
gem and SQL
queries.
Use these commands in your terminal:
git clone https://github.com/BecaLParker/chitter-challenge
cd chitter-challenge
bundle
Setup the databases on your local machine:
Connect topsql
Create the database using the psql commandCREATE DATABASE duckboard;
Connect to the database using the pqsl command\c duckboard;
Run the SQL commands I have saved in the migrations files
exit psql\q
You can now run the feature and unit tests I built: rspec
To interact as a user:
rackup
, then visit localhost:9292 in your browser and follow any onscreen instructions.