Tesla Booking Backend is the rails only api app for the full stack tesla booking app. It provides all the endpoints for the frontend to consume. Here the logic for the app is implemented.
- Demes Abera Ameneshoa - GitHub: @demesameneshoa
- Fatema Nazari @78fatemanazari
- Arthur Emanuel G. Iturres @ITurres
- Mahammad Mostafa @mahammad-mostafa
The API is designed as per the ER Diagram shown below which dictates the association of models and their relationships.
- Ruby on Rails As an API.
- Postgres Database.
- API Routed to Provide Response for Requests.
- Git Version Control.
- User Authentication Managed by Devise.
- JWT Token as Authorization Key.
- Models Associations.
- API Documentation.
- You can view the input json and response json formats and also you can interact with the API database to visualize the input and output flow of requests and responses.
- Api docs
To get a local copy up and running, follow these steps.
In order to run this project you need:
mkdir tesla-booking-api
cd tesla-booking-api
Clone this repository to your desired folder:
- With SSH:
cd my-folder
git clone git@github.com:mahammad-mostafa/tesla-booking-back-end.git
- With HTTPS:
cd my-folder
git clone https://github.com/mahammad-mostafa/tesla-booking-back-end.git
- With GitHub CLI:
cd my-folder
gh repo clone mahammad-mostafa/tesla-booking-back-end
Connect to your local postgres database:
Inside the config/database.yml file add your
POSTGRES_USER=<username>
POSTGRES_PASSWORD=<password>
Install this project with:
cd tesla-booking-back-end
bundle install
rails db:create - create the database
rails db:migrate - run pending migrations for the current environment.
rails db:seed
To run the project, execute the following command:
rails server - Starts the development server
rails console - Starts the interactive command line
π€ Demes Ameneshoa
- GitHub: @demesameneshoa
- Twitter: @demesabera
- LinkedIn: demesameneshoa
π€ Fatema Nazari
- GitHub: @78fatemanazari
- Twitter: @fati_nazari78
- LinkedIn: 78fatemanazari
- Unit Tests
- Add More Endpoints
- Add Users Role Based Access
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please leave a star π€©
We would like to acknowledge the Microverse community and the staff for their incredible support through out our journey.
This project is MIT licensed.