A simple way to track reminders. Just write a reminder, set a date and forget it till later.
This is your introduction, your goal for this iteration is to clone the repository into your local/virtual machine and get the program to run.
Ideally, you should for the repository to your own github account and clone it from there. All modifications should be done on your Github account and then you will to do pull request to the core maintainer of the project, Haniiiiii.
git clone
the repo- Run
bundle install
to ensure that all your gems are up to date. - Run
ruby app.rb
Got the application running? Good! If not, read the error messages and get debugging.
In another window, have a look at the code. There will be just 3 simple 'routes'
which the application will respond to. Try and use the browser or curl
to access
the routes. By default the webserver will spawn up on either localhost:4567
or 127.0.01:4567
example usage of curl
:
curl -v localhost:4567
to see a details output of the requestcurl -d
to send POST data to the servercurl -H
to send Header information to a server
You don't need all of these now, but they will be helpful in the future
Try and access all the routes that are written in the app.rb
file and play around and add some other routes.
Remember we will be mainly focusing on these four HTTP verbs: GET, POST, PUT and DELETE.
Written on Ruby using Sinatra
More to come!
09/07/2014
Added a new branch called DogeMinder that will temporarily serve as the app development branch. The master branch will serve as the learning branch, for now.
To get the new branch:
- git fetch
- git checkout DogeMinder
Run gem install sqlite3 datamapper dm-sqlite-adapter
.
You may or may not need sudo gem install
for that.
Then run re-mind.rb.
10/07/2014 Added reminder editing functionality to DogeMinder.