Skip to content

chauduongdominh-eh/sinatra-todo-api

Repository files navigation

Dev env setup

Enable direnv:

direnv allow

Install dependencies:

bundle install

Build Yard docs for Solargraph:

yard gems

Start the server:

rackup

By default, the server runs on port 9292

Database migration

Migrate:

sequel -m db/migrations "$DB_URL"

Rollback everything:

sequel -m db/migrations -M 0 "$DB_URL"

Replace 0 with the timestamp of a migration, all migrations created after the specified migration will be rolled back.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages