Coder Social home page Coder Social logo

olawalejoseph / gymify-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 265 KB

This a REST API built with the Ruby on Rails framework. This API implements token based authentication and authorization.

Home Page: https://gymify-backend.herokuapp.com/api/v1/

Ruby 99.75% HTML 0.25%
rails6-api authentication token-based-authentication

gymify-backend's Introduction

GYMIFY API

A RESTFUL API built with Ruby on Rails. The application exposes API endpoints for a gym front end application. The application allows user to register, login, view trainers and book appointments with trainers.

End Points

There are a couple of endpoints exposed by this api and can be accessed online using https://gymify-backend.herokuapp.com/api/v1 as the base Url.

POST

  • /auth - (create user account)




  • /auth/sign_in - (log in to account)




  • /appointments - (create appointment)




GET




  • /me - (fetch user info)
  • /trainers - (fetch all trainers)
  • /appointments - (fetch all appointments for current user)
  • /appointments/:id - (fetch one appointments for current user)

Built With

  • Ruby on Rails
  • Postgresql
  • Heroku
  • Rspec
  • Devise-Auth-Token
  • Cloudinary

Live Demo

For the full working application Click here

Installation

To get a local copy up and running follow these simple example steps.

Setup

Clone this repository

Follow:

  1. cd into the project directory
  2. run bundle install
  3. run rails db:migrate
  4. create rails credentials for cloudinary, check below for format
6. run rails s to start the server. 7. Make request to the api via a tool such as Postman

Run tests

  • run rpsec

NOTE I had a medical issue that hindered me from working on the project, this is the reason for the late submission of this project. I sent a mail to to student success to notify them that I will require additional time for the completion of the project, which was granted.

Author

๐Ÿ‘ค Adedeko Olawale

๐Ÿค Contributing

  • Contributions, issues and feature requests are welcome!

  • Feel free to check the issues page

Show your support

  • Give a โญ๏ธ if you like this project!

gymify-backend's People

Contributors

olawalejoseph avatar

Watchers

 avatar  avatar

Forkers

graceoyiza

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.