Giter Club home page Giter Club logo

car_app_backend's Introduction

logo

RENT CARS

๐Ÿ“— Table of Contents

๐Ÿ“– RENT CARS - Back End

** RENT CARS - Back End ** Is a Ruby Back-End project for users to rent cars, and Admins to create and delete cars. Users will have the chance to view the history of cars reserved.

** The app front end can be found here

๐Ÿ›  Built With

Key Features

  • Users can view Cars signup, login and reserve cars.
  • Admin can login, add and delete cars.
  • Users can view history of cars
  • Users can view characteristics of cars (price, electric, brand and much more).
  • Users can view which cars are available for rent and which aren't
  • Full stack app
  • Styling uses CSS

(back to top)

Key Features

๐Ÿ’ป Getting Started

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

Prerequisites

In order to run this project you need:

Setup

Clone this repository to your desired folder:

git clone [email protected]:dgcuenca/car_app_backend.git

and then move to the folder:

cd car_app_backend

(back to top)

Install

Install dependancies with:

bundle install

Usage

In order to run the project please follow the next steps to create your credentials|masterkey pair:

  1. Delete config/master.key and config/credentials.yml.enc if they exist.
  2. Run in the terminal: EDITOR=code rails credentials:edit
  3. This command will create a new master.key and credentials.yml.enc if they do not exist.
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:seed
bundle exec rails start

then go to http://localhost:300

Users to log in into the app:

admin: [email protected]
password: 123456

user: [email protected]
password: 123456

Run tests

To run tests, run the following command:

rspec spec/models/ // to test models
rspec spec/requests/api/v1  // to test controllers

Deployment

(back to top)

Kanban Board

  • Initial state of Kanban Board
  • kanbanBoard
  • Number of team members at start and finish: 5 Team members.

(back to top)

๐Ÿ‘ฅ Authors

๐Ÿ‘ค Belay Birhanu

๐Ÿ‘ค Juan Carlos Sanchez

๐Ÿ‘ค Diego Cuenca

๐Ÿ‘ค Paul Saenz

๐Ÿ‘ค Giovanni Juliao

(back to top)

๐Ÿ”ญ Future Features

  • Add price to reservation
  • Add plac-id to cars

(back to top)

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

โญ๏ธ Show your support

If you like this project please give it a star.

(back to top)

๐Ÿ™ Acknowledgments

(back to top)

โ“ FAQ

  • Can I use this project for personal use?

    • Sure, if you want to talk about something specific, feel free to send me a direct message.

(back to top)

๐Ÿ“ License

This project is MIT licensed.

(back to top)

car_app_backend's People

Contributors

paulsaenzsucre avatar belaymit avatar lojacho avatar gjuliao avatar

Watchers

 avatar  avatar  avatar

car_app_backend's Issues

(3pts) - Add Api Endpoints Routes

Add Api Endpoints Routes

We will implement the following:

๐Ÿ“Œ We will define the routes structure por the api backend:

  • We create a route for users.

  • We create a route for cars.

  • We create a route for reservations.

Final group capstone: set up your Kanban board

In this pull request, We were able to:

Set up a kanban board to manage our project tasks: By organizing our tasks into different stages and columns, we can better visualize our progress and plan our next steps more effectively.

Created a project to manage the entire scope of the project: By having a centralized location for our project files and documentation, we can ensure that everyone is on the same page and that nothing falls through the cracks.

Created two separate repositories for front-end and back-end development: By separating our code into two distinct repositories, we can better manage changes, dependencies, and version control.

Created issues and assigned them to the appropriate repositories: By breaking down our tasks into smaller, more manageable chunks and assigning them to specific team members, we can ensure that everyone is working on the right things at the right time.

Thanks for the review.
We are a group of 5
kanbanboard

(3ptx) - Add Api Cars Endpoint

Add Api Cars Endpoint

We will implement the following:

  • We will implement the api/v1/cars endpoint so the user can do GET and POST requests.

  • We will implement the api/v1/cars/:id endpoint so the users can do GET, PUT, and DELETE requests.

(3pts) - Add Cancancan Authorizations

Add Cancancan Authorizations

We will implement the following features:

  • We will add cancancan as a dependency.

  • We will add role attribute to users. The first created user in database will be assigned 'admin' role, the other users will be assigned 'user' role by default.

  • We will assure that the admin could manage any resources.

  • We will assure that any user can get data about cars.

  • We assure that only owners can see, make, update, delete, their self-reservations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.