App developed during Makers Academy course for the purpose of studying the Sinatra framework, Databases and ORM. The focus in this project was on building from scratch an ORM tool with the aid of SQL and Ruby to store data in a database, convert it into objects and use it within the app.
With this app you can store and display all links that you want to keep within easy reach. You can make as many bookmarks as you wish, update them, leave comments and assign tags, and when you no longer need your bookmarks, you can easily remove them.
App:
- Sinatra - Quick tool for creating web applications
- PG - The Ruby PostgreSQL Driver
- BCrypt - Security algorithm for hashing passwords
- Rake - task management and build automation tool
Testing:
- RSpec - Behaviour Driven Development for Ruby
- Capybara - Simulator of how a user interacts with the app.
The PostgreSQL database management system should be installed on your system.
$ git clone https://github.com/meta-morpho-sys/new_bookmark_manager
$ cd new_bookmark_manager
$ bundle install
$ rake create_databases
$ rspec
you can run $ rake
to display all existing tasks for the database.
This will give you the application, and set up two databases: new_bookmark_manager
for the development environment,
and new_bookmark_manager_test
for the test environment.
From the command line cd
into the app's directory and type the rackup
command.
Specify your session secret key as the environmental variable SESSION_SECRET. If you don't specify this, the app will generate it's own 20 character SecureRandom secret.