- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- ❓ FAQ (OPTIONAL)
- 📝 License
The Future Mobility Backend is a Ruby on Rails API server to manage CRUD Vehicles and Reservations in an electric cars website, also allowing the creation of new users and the login through an authentication mechanism.
Client
Server
Database
- kanban Board project
- Inital picture
- 4 Team Members @wandergithub @Neeraj-Bhardwaj Carlos Molina @Agetuni
- Create, Read and Delete operations of Vehicles
- Sign-up and Login of Users
- Create, Read and Delete operations of Reservations
To get a local copy up and running, follow these steps.
In order to run this Backend API Server you need:
- Ruby
- Rails
- Postgresql
- 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.
git clone https://github.com/Agetuni/the_future_mobility_backend.git
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
- Create Database with
-
For testing porpouses:
- Create Database with
rails db:create RAILS_ENV=test
- Migrate Database with
rails db:migrate RAILS_ENV=test
- Create Database with
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
-
Consult the documentation in this link: https://documenter.getpostman.com/view/11181665/2s8ZDU74mn
-
You can use a local or remote Base URL
-
Local: http://localhost:3001
-
Remote (live demo): https://future-mobility-backend.onrender.com
-
- GitHub: Carlos Molina
- LinkedIn: Carlos Molina
- GitHub: @wandergithub
- Twitter: @wanderklk1
- LinkedIn: Wander A. Gonzalez
- GitHub: @Agetuni
- LinkedIn: LinkedIn
- AngelList: timo-wester
- GitHub: @Neeraj-Bhardwaj
- Twitter: @Neeraj-Bhardwaj
- LinkedIn: LinkedIn
- 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
Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - 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.
If you like this project. Don't forget to give it a ⭐️
- This webpage is based on an original design provided by Murat Korkmaz on Behance. https://www.behance.net/gallery/26425031/Vespa-Responsive-Redesign
This project is MIT licensed.