Giter Club home page Giter Club logo

jogging-tracker-api's Introduction

Jogging-Tracker-API

About The Project

Jogging-Tracker-API is a RESTful API that tracks jogging times of users.

Functionality requirements:

  • Authentication: Create account / login / logout.
  • When logged in, a user can view, edit and delete entered jogging times.
  • Implement three roles with different permission levels: a regular user would only be able to CRUD on their owned records, a moderator would be able to CRUD users, and an admin would be able to CRUD all records and users.
  • Each time entry when entered has a date, distance, and time.
  • Filter by dates from-to.
  • Report on average speed & distance per week.

Built with

Getting Started

This is an list of needed instructions to set up your project locally, to get a local copy up and running follow these instructions.

Installation

Clone the repository

git clone [email protected]:GeekMind00/Jogging-Tracker-API.git

Navigate to repository directory

$ cd Jogging-Tracker-API

Project Setup

Install all gems:

$ bundle install

Update the database with new data model:

$ rails db:migrate

Start the web server on http://localhost:3000 by default:

$ rails server

Usage

HTTP verbs Paths  Used for
POST /signup Create a user
POST /login Authenticate a user
DELETE /logout Terminate a user's session
GET /users List all users
GET /users/:id Show a single user
POST /users Create a user
PUT /users/:id Update a user
DELETE /users/:id Delete a user
GET /jogging_records?from=date&to=date List all jogging records
GET /jogging_records/:id Show a single jogging record
POST /jogging_records Create a jogging_record
PUT /jogging_records/:id Update a jogging record
DELETE /jogging_records/:id Delete a jogging record
GET /weekly_report Show weekly report of jogging records

Postman Use Case Examples

JoggingTracker-API Collection

jogging-tracker-api's People

Contributors

geekmind00 avatar

Watchers

 avatar

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.