Skip to content

bladebhs/cart_api

Repository files navigation

Cart API

Simple Shopping Cart API

Status

Build Status Maintainability Test Coverage

Requirements

  • Ruby 2.5.1
  • Some database to store products (tested on PostgreSQL 10)

Setup

  • Install required ruby version (rvm install 2.5.1 or rbenv install 2.5.1)
  • Install Bundler gem install bundler
  • Copy config/database.yml.example to config/database.yml and configure the database
  • Run ./bin/setup

How to use

The simpliest way is to use http command.

http POST https://rails-cart-api.herokuapp.com/api/cart product_id=1 quantity=5

Releases

No releases published

Packages

No packages published