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:
- cd into the project directory
- run bundle install
- run rails db:migrate
- create rails credentials for cloudinary, check below for format
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
- Github: @OlawaleJoseph
- Twitter: @javanode123
- Linkedin: olawale-adedeko
๐ค 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!