Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

subvisual/tinystore-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API delivery for the tinystore app.

To run:

bundle install
bundle exec rake db:migrate
bundle exec rails server

You might want to add some entries to the DB, to do so open the rails console and type(to create a store):

repo = Repository.for(:store)
store = Store.new name: "XPTO", description: "Very nice store"
repo.save store

If you need to access the ActiveRecord class directly, without going through the repo (not advised), you can:

Repositories::Stores::ActiveRecord::Store.find(1).update_attributes name: "Foo"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages