View Code? Open in Web Editor
NEW
This project is a back-end API built using Ruby on Rails for a booking application. The application is designed to handle user authentication and authorization. The front-end of the application is responsible for making API calls to fetch data from the server, display it to the user, and send instructions based on user interaction with the app.
License: MIT License
Ruby 85.11%
HTML 11.09%
Batchfile 3.67%
Shell 0.12%
booking-app-back-end's Introduction
booking-app-back-end's People
Stargazers
booking-app-back-end's Issues
Set up React Testing Library.
Create unit tests for all React components:
Use Jest snapshots to test the components.
Use React Testing Library to simulate user interaction.
Make sure that all tests pass.
Create a form for Adding a Car
Create a Page for marking a car as removed/unavailable
Add reducers for the above actions
Installed devise-jwt and fast-json api
Created sessions and registration controllers
Created login, logout and signup routes
Create a reservation page inside the pages folder
Create a component that goes inside the page
Connect the reservation page to the rails backend
Ensure the component displays all bookings belonging to the current user
Add a cancel booking
button
Create a home page inside the pages folder
Create a component that goes inside the page
Connect the homepage to the rails backend
Ensure the component has all cars displaying
Add basic Bootstrap styles
Add hamburger icon for mobile version
Changes :
Setup kanban for the backend of the booking app project
Assign roles to team members
Setup Kanban for frontend
Assign roles to team members
We are four members in the group i.e;
Screenshot
Link to the Kanban Project
Models :
Add User model:
name:string
-email:string
Add Booking model:
start_date:datetime
end_date:datetime
* Add User to Bookings (foreign key)
* Add Car to Bookings (foreign key)
Add Car model:
name:string
description:string
model:string
price:decimal
year:integer
Setup Index.js and react-router;
Setup App.js, routes and route;
Create component, pages and assets folders;
Add final styles
Add changes required
Fix bugs
Use Formik for form validation and form controller
Set up the repository on GitHub and use Gitflow;
Install React & Redux to create frontend UI;
Install React-Redux, Redux-toolkit, React-Router-dom
Install React & Redux linters;
Add REAME file;
Create reducer in redux folder
create a store
connect store to react using provider in index.js
Create routing;
Create pages;
Create Navigation component;
Protected routes with react-router-dom
Install Devise GEM / Set GEMFILE
Configure Application Controller
Check new route "devise_for :users"
Create a detail page inside pages folder
Create a component that goes inside the page
Dispatch from the store package details
Ensure the component displays details about a particular package.
Add a back
button
Add a booking
button - redirecting to the book a car page where the particular car is already selected
Add request specs for the following:
Cars
Bookings/reservations
User
Using swagger
Generate the API documentation
Set up the repository on GitHub and use Gitflow;
Use Postgres as a database;
Use Rails to create backend API;
Install Rails rubocop linters;
Setup RSpec and Cabybara
Add README file;
Use the Bearer token and store it in localStorage
Create SignUp/ Login pages
Use Formik for form validation and form controller
Use Yup for the show form validations
Create a Booking page inside the pages folder
Create a component that goes inside the page
Connect Booking page to the rails backend
Ensure the component creates a new booking by selecting the date and car
Add desktop version styles;
Follow RWD
Add and configure devise gem.
add and configure jwt gem
Update the image links for each car in the seed file.
Check that each image link works correctly.
Add role attribute for users
Allow only admin to create/update cars
Controllers :
Add Users controller:
Add Bookings controller;
Add Cars controller;
Routes :
Add root route;
Add Bookings routes;
Add Cars routes;