This week's project is a bookmark manager. The goal is to expose you to the following aspects of web development, in addition to what we've studied before:
Integration testing: Capybara (Monday)
Relational databases (Tuesday and Wednesday)
Security considerations (Thursday)
A bookmark manager is a website to maintain a collection of links, organised by tags. You can use it to save a webpage you found useful. You can add tags to the webpages you saved to find them later. You can browse links other users have added.
The website will have the following options:
- Show a list of links from the database
- Add new links
- Add tags to the links
- Filter links by a tag
- Ruby
- PostgreSQL
- CSS (custom)
- Testing in RSpec/Capybara
- Sinatra
- Bcrypt
- CSS
- HTML
- DataMapper
Clone the repository:
$ git clone git@github.com:leopoldkwok/bookmarkmanager.gitChange into the directory:
$ cd bookmarkmanagerRun bundle to load the required gems:
$ bundle installEnsure you have PostgresSQL installed.
You will need to create a database locally:
$ psql
=# CREATE DATABASE 'bookmark_manager_test';Migrate the required tables:
$ rake auto_migrateRun Rspec:
$ rspecTo run:
$ rakeupopen a web browser and type localhost:9292