A Rails API for Xplore App. Xplore is a listing of vacation packages.
- Ruby
- Rails
- Postgresql
- RSpec
To get a local copy up and running follow these simple example steps.
- Ruby v2.6.3
- Rails v5.2.4
- Postgresql
- Clone this repository and cd into the project directory.
- Run
bundle install - Run
rails db:create - Run
rails db:migrate - Run
rails server - Install httPie for sending requests from terminal.
To get a list of all packages:
- Run -
http get :3000/api/v1/packages
To get a user's wishlist
- Run -
http get :3000/api/v1/wishes username='insert user's name'
To add a package to a user's wishlist.
- Run -
http post :3000/api/v1/wishes username='insert user's name' id='insert package_id'
To run tests,
- Run -
bundle exec rspec
- Authentication with JWT
👤 Moses Ogwo
- Github: @mosesogwo
- Linkedin: Moses Ogwo
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
- Austin Kabiru - For his helpful tutorial
This project is MIT licensed.