0.0.1 • Published 6 years ago

modeldata v0.0.1

Weekly downloads
4
License
-
Repository
-
Last release
6 years ago

Pre requisite

Please install yarn and mocha.

npm install -g yarn 
npm install -g mocha 

To run example:

clone the repo, then

bundle install
yarn install

Run this only once. It creates the sqlite3 db

cd example
bundle exec rake create_tables

Then run

foreman start

Then go to

http://localhost:8181

To access backend console

cd example
bundle exec rake console

To create sample data, from backend console

Blog.create(name: "blog one", content: "content one")
Blog.create(name: "blog two", content: "content two")