Melody Rentals Backend is a musicial instruments rental application where the user can register new accounts, login and reserve a set of different instruments. It is built and connected by using two different repos, including Back-end(Rails) and Front-end(React/Redux).
Client
Server
- Rails
Database
- [Musical Instrumetns List endpoint]
- [Devise authentication to access Reservations]
- [JWT Authorization upon login and register]
- [Admin Users can add and remove instruments]
- [Authenticated Users can reserve instruments]
- We are a group of 5 people, So we have devided each task for track of the project.
- The API documentation of the project Melody Rentals API-Docs
- The Frontend part of the project Melody Rentals Frontend
- Live Demo π π
To get a local copy up and running, follow these steps.
In order to run this project you need:
Git
and Ruby
gem install rails
Install this project with:
bundle install
- Generate a secret key using
rails secret
- Create a
.env
file with the following content:
POSTGRES_USER=postgres
# If you declared a password when creating the database:
POSTGRES_PASSWORD=YourPassword
POSTGRES_HOST=localhost
POSTGRES_DB=Hello_Rails_Backend_development
POSTGRES_TEST_DB=Hello_Rails_Backend_test
# Devise secret key
DEVISE_JWT_SECRET_KEY=Secret Key you generated
Create Database (Mandatory)
rails db:create
If you have made a migration then run this command
rails db:migrate
rails db:seed
To run the project, execute the following command:
rails s -p 3001 # # for serving the API on localhost:3001
Run tests
bundle exec rspec
π€ Farida Hamid
- LinkedIn: LinkedIn
- GitHub: @Farida-Hamid
π€ Megha Bodke
- GitHub: @megha-n-bodke
- LinkedIn: Megha Bodke
π€ Tracy Musongole
- GitHub: @TracyMuso
- LinkedIn: Tracy Musongole
π€Elie Harfouche
- GitHub: @X-Elie-X
- LinkedIn: Elie Harfouche
π€ Bantealem Geto
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a βοΈ if you like this project!
I would like to thank:
- Microverse
- Code Reviewers
-
How I can install rails?
- You can follow the official guide to install rails. If you have gem installed, you can run
gem install rails
to install rails.
- You can follow the official guide to install rails. If you have gem installed, you can run
-
How I can run this project?
- After cloning repository, run
bundle
and then runrails s
with option argument-p 3001
. This will run the server onlocalhost:3001
. You can change the port number if you want. Then you can use any API client to test the endpoints. For example, you can use Postman or Insomnia. You can also use the API Documentation to test the endpoints.
- After cloning repository, run
-
How I can run tests?
- After cloning repository, run
bundle
and then runrspec
to run the tests.
- After cloning repository, run
This project is MIT licensed.