- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
Ruby Resorts Back End is the Back End project for Ruby Resorts Final Capstone Project. The back end is developed using Rails and PostgreSQL. We used JWT tokens for authentication between front and back ends. A JWT token will be generated every time a user logs in. A regular user can signup, then log in with a username and password. The user can get a list of Suites, can get details of each suite, will be able to reserve a suite, and can access their past reservations. An admin user will be able to create a new suite and delete an existing suite.
The front end part of the project can be found in this repo: Frontend repository
We are a team of four members for this project.
- Anthony Martin
- Ghulam Subbhani
- Raphael Okolo
- Ram Kumar Karuppusamy
username : admin
password : admin123
Here you can find the Project API documentation
Here you can find the API initial design: API design
Please find the Kanban boards in below links:
## 🛠 Built With
- Authentication API
- User management API
- Room reservation API
- Live demo is hosted in Render
To get a local copy up and running, follow these steps.
In order to run this project you need the following installed in your local machine:
- Ruby
- Rails
- PostgreSQL
- Github Account
Clone this repository to your desired folder:
cd <desired-folder>
git clone https://github.com/anthonymr/ruby-resorts-backend
cd ruby-resorts-backend
Install this project with:
bundle install
The above command installs necessary gems used in the project
Make sure you have the right PosgreSQL configuration in the database config file
Create database with this commmand:
rails db:create
Seed your database with this command (see seed file):
rails db:seed
To run the project, execute the following command:
rails s
The above command starts the rails server.
To run tests, run the following command:
rspec spec
we have added Rspec test cases for all models and API endpoints in the project.
You can run server production mode with this command:
RAILS_ENV=production rails s
👤 Anthony Martin
- GitHub: @anthonymr
- Twitter: @Anthony2Martin
- LinkedIn: Anthony Martin
👤 Raphael Okolo
- GitHub: @RaphDasilva
- Twitter: @silvaz_creation
- LinkedIn: Raphael (Nnaemeka) Okolo
- Allow admin user to add new hotels and cities
- Allow users to cancel reservations
Contributions, issues, and feature requests are welcome!
Please log any bugs or issues in issues page.
If you like this project, please give a Star to the github repo
We would like to thank Murat Korkmaz on Behance for the design.
This project is MIT licensed.