Skip to content

The Future Mobility Backend is a Ruby on Rails API-only server to manage CRUD of vehicles and reservations in an electric cars website, which also allows the creation of new users and the login through an authentication mechanism. You can test it, using the respective front-end webapp. This full stack challenge was made by a team of four members

License

Notifications You must be signed in to change notification settings

cmolinan/the_future_mobility_backend

 
 

Repository files navigation

📗 Table of Contents

📖 The Future Mobility Backend

The Future Mobility Backend is a Ruby on Rails API-only server to manage CRUD of vehicles and reservations in an electric cars website, which also allows the creation of new users and the login through an authentication mechanism. You can test it using the respective front-end webapp (https://future-mobility.netlify.app/). This full stack challenge was developed by a team of four members

Click here to see the FRONT-END project

🛠 Built With

Tech Stack

Client
Server
Database

Kanban Board

Key Features

  • Create, Read and Delete operations of Vehicles
  • Sign-up and Login of Users
  • Create, Read and Delete operations of Reservations

(back to top)

🚀 Live Demo

(back to top)

💻 Getting Started

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

Prerequisites

In order to run this Backend API Server you need:

  • Ruby
  • Rails
  • Postgresql

Github

  • Enter this url: https://github.com/Agetuni/the_future_mobility_backend in your web browser.
  • Once opened navigate to the top left level of the project a green code download button will be visible on the righthand side.
  • Select the download Zip option from drop-down menu.
  • Once the download is complete you will be able to access my project locally.

Local (Terminal)

  git clone https://github.com/Agetuni/the_future_mobility_backend.git

Install

Install this project with the steps below:

  • After cloning, type cd the_future_mobility_backend to access the project on the terminal.

  • Run bundle install to install all the required dependancies.

  • For developmente environment:

    • Create Database with rails db:create RAILS_ENV=development
    • Migrate Database with rails db:migrate RAILS_ENV=development
    • Populate data with rails db:seed RAILS_ENV=development
  • For testing porpouses:

    • Create Database with rails db:create RAILS_ENV=test
    • Migrate Database with rails db:migrate RAILS_ENV=test

Usage

To run the project, execute the following command:

  • Run rails s to start a development server (it will run in port 3001)
  • Now, you are ready to consume the API endpoints

To run the tests of the project, execute the following command:

  • Run rspec to start the tests

How to use this API

(back to top)

👥 Authors

👤 Carlos Molina

👤 Wander Gonzalez

👤 Aleazar Yilma

👤 Neeraj Bhardwaj

(back to top)

🔭 Future Features

  • Add authorization feature to have an admin role
  • Logic to not allow reservations of vehicles on dates already reserved
  • Add logic to permit UPDATE of vehicles and reservations

(back to top)

🤝 Contributing

Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue, feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project. Don't forget to give it a ⭐️

(back to top)

🙏 Acknowledgments

(back to top)

📝 License

This project is MIT licensed.

(back to top)

About

The Future Mobility Backend is a Ruby on Rails API-only server to manage CRUD of vehicles and reservations in an electric cars website, which also allows the creation of new users and the login through an authentication mechanism. You can test it, using the respective front-end webapp. This full stack challenge was made by a team of four members

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 94.7%
  • Batchfile 4.6%
  • Other 0.7%