An API-only app consumed by the HAP frontend via token-based authentication with devise-token-auth.
The MVP endpoints include:
- GET /hikes
- GET /bookings
- POST /auth
- POST /auth/sign_in
- DELETE /auth/sign_out
- POST /hikes/{id}/appointments
- Ruby v2.6.5
- Ruby on Rails v5.2.4
- RSpec >=3.8.0
- PostgreSQL >=9.5
To get a local copy up and running follow these simple example steps.
Ruby: 2.6.5
Rails: 5.2.3
gem install rails -v 5.2.3
PostgreSQL: >=9.5
Clone repo into your local environment:
Clone with SSH
git clone git@github.com:cliftondavies/HAP-API.git
Clone with HTTPS
git clone https://github.com/cliftondavies/HAP-API.git
Open project directory
cd [your-directory-name]
Install gems:
bundle install
Set up database:
rails db:create
rails db:migrate
Start console:
rails console
Start server:
rails server
Open http://localhost:3000/
in your browser.
heroku create
git push heroku master
heroku run rails db:migrate
heroku run rails db:seed
heroku open
👤 Clifton Davies
- Github: @githubhandle
- Twitter: @twitterhandle
- Linkedin: linkedin
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!
Copyright (c) 2020 Clifton Davies. This project is licensed under MIT. See LICENSE file for details.