This is a bit of playground. It is based around building a blog platform, but there are features missing.
Fork this repo
- Install Ruby and RubyGems if you don't already have it
- Install Vagrant
- Install VirtualBox
- cd into project directory
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-librarian-chef
vagrant plugin install vagrant-omnibus
- Run
vagrant up
- Once up run
vagrant ssh
to connect to the VM - On the VM run
bundle install
- Then run
rake db:migrate
- Then run
rake db:seed
- Then run
foreman start
1. As a blogger, I want my articles to have an 'average time to read' displayed, so that my readers get an idea how long it will take them to read.
- Calculate how long the article would take an average reader to read in seconds
- There's no required business logic here. It is up to the implementor how this might work.
- Save the calculation in the read_time on the article
- Once you get the read_time as a part of creation, make sure it is always saved and updated with the model.
- Extra: display the number on the article show view in a human readable format example: 60 becomes 1 minute
2. As a blogger, I want to be able to tag my articles, so that my users get an idea of what the article is about.
- Create tag model
- Needs to have name, created at and updated at fields
- name will be required
- Will be associated to an article model
- Allow the user to set a tag when creating an article (no need to allow update)
- The seed file has Tags to add to the database. Simply delete the
development.sqlite3 database file, run
rake db:migrate
thenrake db:seed
- The seed file has Tags to add to the database. Simply delete the
development.sqlite3 database file, run
- Commit your changes to the master branch
- Push the changes to your remote repo
- Create a pull request