This project is a Final capstone based on a find your house app. It specifically helps the user to find vacation hotels and resorts.
A RESTful API to manage database resources. The api has the following endpoints;
Enpoints | Fuctionality |
---|---|
POST registration/ | Sign up |
POST sessions/ | Sign in |
POST hotels/ | Add hotel |
GET hotels/ | List hotels |
POST favorites/ | Add favorite |
GET favorites/ | List favorites |
DELETE logout/ | Logs out User |
- The project is a mobile web app which is responsive on desktop too
- The database has 3 tables, users, hotels, favorites table using Postgres as the DB
- It Connects to the back-end API to send and receive domain data. With routes for each of the screens, so the user can easily go back and forward, Using redux to store info used across the app, like the user info
– The App page is a container with React Router. It gets app state from Redux Store. Then the navbar now can display based on the state.
– Login & Register pages have form for data submission (with support of react-validation library). They dispatch auth actions (login/register) to Redux Thunk Middleware which uses apiMiddleware to call API.
– apiMiddleware methods use axios to make HTTP requests.
– Home page is public for all users.
– Hotels page displays a list of hotel & resorts information after the login action is successful.
- When a user selects a hotel, detailed information about the hotel is presented and the possibility to add it to favourites. The user can access a list of favourite hotels
- ROR
- Ruby
- TDD
- RSpec
- Heroku
To get a local copy of the repository please run the following commands on your terminal:
$ git clone https://github.com/Georjane/authentication_api.git
$ cd authentication_api
$ rails db:migrate
$ rails s
$ Open localhost:3000 in your browser if it doesn't open automatically
$ bundle exec rspec
- Github: @Georjane
- Twitter: @WittyJany
- LinkedIn: Witah Georjane
There are two ways of contributing to this project:
- If you see something wrong or not working, please open the issue in issue section
- If you see something to improve or to correct, and you have a solution to that, follow the below steps to contribute:
- Fork this repository
- Clone it on your local computer by running
git clone https://github.com/Georjane/authentication_api.git
Replace your username with the username you use on github - Open the cloned repository which appears as a folder on your local computer with your favorite code editor
- Create a separate branch off the master branch,
- Write your codes which fix the issue you found
- Commit and push the branch you created
- Open a pull request, comparing your new created branch with our original master branch here
Give a ⭐️ if you like this project!
- All design inspiration info can be found here
- Microverse
- Design idea by Alexey Savitskiy on Behance