Giter Club home page Giter Club logo

record-keeper's Introduction

Synopsis

Contained is a system built to parse and sort a set of records. A record is an object that contains some personal information regarding a person, specifically their name, date of birth, and favorite color.

Installation

This project requires that Grape, rack-test, and rspec gems are installed

API Reference

The API is powered by Grape, and the server can be started by running rackup while in /record-keeper.

The following methods are provided:

[POST /records] (localhost:9292/records) - Posts a single line of data formatted either as a comma or pipe delimited string, which is then saved into the makeshift text file database. The parameter key for this method is record, and the value is the formatted string.

[GET /records/birthdate] (localhost:9292/records/birthdate) - Returns a list of records sorted by birthdate in ascending order.

[GET /records/name] (localhost:9292/records/name) - Returns a list of records sorted by last name in descending order.

Data is stored in a text file under /record-keeper/data. Some data has been provided to start, but the entire data folder can be removed and will be recreated when an initial record is posted.

Tests

Tests are written using RSpec. The entire suite can be ran by navigating to /record-keeper/spec and running rspec.

record-keeper's People

Contributors

bmlevine11 avatar

Watchers

James Cloos avatar  avatar

Forkers

blevine-zen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.