Skip to content

bernard-kanyolo/justdoit

Repository files navigation

Build Status Coverage Status Code Climate Issue Count

JUSTDOIT

Documentation - justdoit-api.herokuapp.com.

Source code - https://github.com/andela-bkanyolo/justdoit

Running the application

Install dependencies

You need to install the following:

  1. Ruby
  2. PostgreSQL
  3. Bundler
  4. Rails
  5. RSpec

Clone the repository

Clone the application to your local machine:

$ git clone https://github.com/andela-bkanyolo/justdoit.git

Install the dependencies

$ bundle install

Setup database and seed data

$ rake db:setup

To run the application;

$ rails s

To test the application;

$ rspec

API limitations

It returns JSON only

The API Endpoints

Endpoint Action
POST /signup/ Create a new user
POST /auth/login/ Log in existing user
GET /auth/logout/ Log out existing user
POST /bucketlists/ Create a new bucket list
GET /bucketlists/ List all the created bucket lists
GET /bucketlists/{id} Get single bucket list
PUT /bucketlists/{id} Update this bucket list
DELETE /bucketlists/{id} Delete this single bucket list
POST /bucketlists/{bucket_id}/items/ Create a new item in bucket list
GET /bucketlists/{bucket_id}/items List all the created items in a bucket list
GET /bucketlists/{bucket_id}/items/{id} Get a single item in a bucket list
PUT /bucketlists/{bucket_id}/items/{item_id} Update a bucket list item
DELETE /bucketlists/{bucket_id}/items/{item_id} Delete an item in a bucket list

Contributing

  1. Fork it!
  2. Create your branch: git checkout -b ft-awesome
  3. Commit your changes:
  4. Push to the branch: git push origin ft-awesome
  5. Submit a pull request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published