Skip to content

A demonstration of a CRUD sinatra app using `pg` directly to interact with postgres and a custom db migration tool.

Notifications You must be signed in to change notification settings

dearshrewdwit/demo_bookmark_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookmark Manager

For students: I spent about 8hours meandering my way through the bookmark manager challenge, recording every scintillating second. It can be at times quite dreary while I looked things up at times, so buckle up, get your popcorn, and maybe use this hack to occasionally speed up the video more than youtube thinks the average joe should.

For coaches: If you find some time, record yourself working through it: I found it useful to see how the flow works, how the step weighting varies, and where it all could be improved a lot.

For everyone: The intention is for this to be a resource to see how an experienced dev would approach the steps without using the walkthrough or hints, just docs and google as needed.

The caveat: I was constrained at times by the contrived nature of the learning exercise. I prioritised basic implementations in favour of covering edge-cases. I allowed myself a few refactors to ease my way, but this is in no way a bug-free app. It was always primarily going to demonstrate TDD.

Oh. Also.

There is no styling. I forewarn you.

Quick Start

# master branch
$ git clone git@github.com:dearshrewdwit/demo_bookmark_manager.git && cd demo_bookmark_manager
$ bundle install
$ createdb demo_bookmark_manager_development
$ bundle exec rake db:setup RACK_ENV=development
$ bundle exec rake db:migrate RACK_ENV=development
$ bundle exec rackup

Tests

# master branch
$ createdb demo_bookmark_manager_test
$ bundle exec rake db:setup RACK_ENV=test
$ bundle exec rake db:migrate RACK_ENV=test
$ bundle exec rspec

Diffs, Branches, and Recordings

Check out the pull requests that show the diff for each section I worked through.

About

A demonstration of a CRUD sinatra app using `pg` directly to interact with postgres and a custom db migration tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published