In this project, we created a website for renting exotic cars (exo-cars). It fetches data from an API that we also created and deployed on Heroku. It allows users to register with token validation, see the available cars and make reservations. Admins are allowed to add and remove cars from the database.
- Ruby on Rails
- devise
- jwt
- rspec-rails
- rswag
To get a local copy, follow these simple steps.
Web browser installed
Cloning a repository
-
On GitHub.com, navigate to the main page of the repository;
-
Above the list of files, click "Code" button;
-
Copy the URL to clone the repository.
-
To clone the repository using HTTPS :
https://github.com/ElsonOtake/Final_capstone_backend.git
-
To clone the repository using an SSH key, including a certificate issued by your organization's SSH certificate authority :
git@github.com:ElsonOtake/Final_capstone_backen.git
-
To clone a repository using GitHub CLI :
gh repo clone ElsonOtake/Final_capstone_backen
-
-
Open Terminal;
-
Change the current working directory to the location where you want the cloned directory;
-
Type
git clone
, and then paste the URL you copied earlier; -
Change the current working directory to the location of your cloned directory;
-
Run
bundle install
; -
Run
bundle exec figaro install
; -
Add the following content to the
config/application.yml
filling in your Postgres username and password:DATABASE_HOST: localhost DATABASE_USER: your_username DATABASE_PASSWORD: your_password
-
Run
rails db:create db:migrate db:seed
-
Run
rails server
;
-
Open your terminal;
-
Go to application folder;
-
run
rspec spec/requests
for test the requests; -
run
rspec spec/models
for test the models; -
run
rake rswag:specs:swaggerize
to generate the API documentation.
👤 Antonio Hincapié
- GitHub: @AntonioHincapie
- Twitter: @MarcoHincapie
- LinkedIn: antoniohincapie
👤 Elson Otake
- GitHub: elsonotake
- Twitter: @elsonotake
- LinkedIn: elsonotake
👤 Giuseppe Tomasini
- GitHub: @GiuseppeTG
- Twitter: @giusetomasini
- LinkedIn: Giuseppe Tomasini
👤 Gonzalo A. Medina
- GitHub: @mgmediaweb
- Twitter: @GonzoMedinaDev
- LinkedIn: gonzalo-medina-g
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
- W3Schools
- Stack Overflow
This site is based on the design created by Murat Korkmaz on Behance, this design is under the Creative Commons license of the design.
This project is MIT licensed.