This contains the blog app from the Building a web application guide.
git clone https://github.com/zilverline/sequent-examples.git
cd building-a-web-application
rbenv install
gem install bundler
bundle installTo create the database and tables:
cd building-a-web-application
bundle exec rake sequent:db:create
bundle exec rake sequent:db:create_view_schema
bundle exec rake sequent:migrate:online
bundle exec rake sequent:migrate:offline
cd building-a-web-application
bundle exec rackup -p 4567
Open localhost:4567
To create the test database:
cd building-a-web-application
SEQUENT_ENV=test bundle exec rake sequent:db:create
And running the spec:
SEQUENT_ENV=test bundle exec rspec