Skip to content

dwhite96/todo-list-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo List Rails API

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.

Ruby Version

This API was written and tested with Ruby 2.3.0

System Dependencies

  • 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.

Getting Started

Configuration

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

Use

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

How to run the test suite

bundle exec rspec spec/

Deployment instructions

This has not been tested yet. Will test in the future. Recommend using Heroku or Amazon Web Services (AWS).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published