Skip to content

El Dorado is a luxury car rental application where the user can register new accounts, login and reserve a set of different cars. It is built and connected by using two different repos, including Back-end(Rails) and Front-end(React/Redux).

License

Notifications You must be signed in to change notification settings

michael-duke/ElDorado-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

logo

πŸ“— Table of Contents

πŸ“– EL Dorado Backend

eldorado-logo

El Dorado Backend is a luxury car rental application where the user can register new accounts, log in and reserve a set of different cars. It is built and connected by using two different repos, including Back-end(Rails) and Front-end(React/Redux).

πŸ›  Built With

Tech Stack

Client
Server
  • Rails
Database

Key Features

  • [Luxary Cars List endpoint]
  • [Devise authentication to access Reservations]
  • [JWT Authorization upon login and register]
  • [Authenticated Users can add/mark as removed a Car]
  • [Authenticated Users can reserve/remove a Car]

(back to top)

Website Mockup πŸ“± πŸ’» πŸ–₯️

screenshot screenshot screenshot screenshot

(back to top)

Kanban Board

  • We are a group of 4 people, so we used 2 Kanban boards to divide the work and keep track of the progress.

Frontend Kanban Board

Backend Kanban Board

(back to top)

API Documentation

(back to top)

πŸ“‡ Entity Relationship Diagram

er-diagram

React Frontend

πŸš€ Live Demo

(back to top)

πŸ’» Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

To run this project you need: Git and Ruby

 gem install rails

Install

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 a Database (Mandatory)

rails db:create

If you have made a migration then run this command

rails db:migrate
rails db:seed

Usage

To run the project, execute the following command:

   rails s -p 3001 # # for serving the API on localhost:3001

Run tests

bundle exec rspec

(back to top)

πŸ‘₯ Authors (4 Micronauts)

πŸ‘€ Aamir Khan

πŸ‘€ Abel Gebeyehu

πŸ‘€ Michael Mesfin

πŸ‘€ Milen Alebel

(back to top)

πŸ”­ Future Features

  • [Admin Roles and access to add New lux Cars]
  • [Keep count of cars using addtional attribute]

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

Give a ⭐️ if you like this project!

(back to top)

πŸ™ Acknowledgments

I would like to thank:

(back to top)

❓ FAQ

  • 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.
  • How I can run this project?

    • After cloning the repository, run bundle and then run rails s with option argument -p 3001. This will run the server on localhost: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.
  • How I can run tests?

    • After cloning the repository, run bundle and then run rspec to run the tests.

(back to top)

πŸ“ License

This project is MIT licensed.

(back to top)

About

El Dorado is a luxury car rental application where the user can register new accounts, login and reserve a set of different cars. It is built and connected by using two different repos, including Back-end(Rails) and Front-end(React/Redux).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •