- Notifications
You must be signed in to change notification settings - Fork4
MatUrbanski/todo_api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
JSON API for todo project built with Roda + Sequel.
git clone git@github.com:maturbanski/todo-api.gitcd todo-api
ruby -v
The ouput should start with something likeruby 3.0.0
If not, install the right ruby version.
UsingBundler:
bundle install
This project uses PostgreSQL by default, to setup database for development and test environment use following instructions:
- Create
.env.development
for development environment. - Add
DATABASE_URL=postgres:///todo-api-development
andcreatedb todo-api-development
locally. - Create
.env.test
for test environment. - Add
DATABASE_URL=postgres:///todo-api-test
andcreatedb todo-api-test
locally.
- To migrate database in development environment use:
rake db:migrate
- To migrate database in test environment use:
RACK_ENV=test rake db:migrate
- To migrate database in production environment use:
RACK_ENV=production rake db:migrate
You can start your application usingrackup
command.
You can generate documentation usingrake docs
command.
You can launch tests usingrspec
command.
To populate data with seeds userake db:seed
command.
To check code style usingrubocop
command.
About
JSON API for todo project built with Roda + Sequel. Source code for "Ruby on Roda" book.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.