Skip to content

To-Do List App put together as a beginner Sinatra with Data Mapper example before mentoring at Codebar - Mind the Code

Notifications You must be signed in to change notification settings

Rosa-Fox/todo-sinatra-datamapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-sinatra-datamapper

To-Do List App put together as a beginner Sinatra with Data Mapper example before mentoring at Codebar - Mind the Code

clone the repo and cd into it

Make sure you have Ruby installed https://www.ruby-lang.org/en/downloads/

gem install bundler

bundle install

Download and install PostgreSQL Add a development database:

$ createdb development

Start the local server

rackup

Navigate to http://localhost:9292/todo

To query/add stuff to the db using the command line (make sure you cd into the root directory:

pry
require './server'
Todo.all
Todo.create
Todo.get(1)

etc

More here http://cheat.errtheblog.com/s/datamapper

About

To-Do List App put together as a beginner Sinatra with Data Mapper example before mentoring at Codebar - Mind the Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published