A simple todo list backend app that serves JSON data. Current functionality includes:
- CRUD operations for a todo item with attributes for title, order, and completion (boolean).
- RSpec test suite.
- That's it! That's all the functionality for now. There may be more features added in the future.
This API was written and tested with Ruby 2.3.0
- Rails 5.0.0.rc1
- Puma for app server
- Recommend using ActiveModel::Serializer instead of jbuilder. Just add to Gemfile:
gem 'active_model_serializers', '~> 0.10.0'
See Gemfile for other dependencies.
This API uses PostgreSQL databases for the development, test, and production environments. See http://edgeguides.rubyonrails.org/configuring.html#configuring-a-database for configuring a different database.
Database creation and initialization
rake db:create db:migrate
Run the development web server with bundle exec rails s
Common (RESTful) endpoints to use from your frontend application:
See a list of todos:
GET /todos
See one todo:
GET /todos/:id
Add a todo:
POST /todos
bundle exec rspec spec/
This has not been tested yet. Will test in the future. Recommend using Heroku or Amazon Web Services (AWS).