Skip to content

Utilizing Auth0 for Authentication and Authorization, Redux for state management, this application is built as a single page app consuming a Ruby on Rails API for booking appointments to test drive supercars.

Notifications You must be signed in to change notification settings

somoye123/Drive-Super-Cars-Frontend

Repository files navigation

Drive Super Cars

A tablet web app for booking appointments to test drive super cars.

Home Page

Cars Page

Appointments Page

About this project

This Application is built as a front end app consuming a Ruby on Rails API separately deployed to Heroku. It uses Auth0 for Authentication and Authorization

End Points

This application consumes a couple of endpoints served by the API accessible online as the base Url;

POST

  • /users - (create user account)
  • /appointments - (create appointment)

GET

  • /cars - (fetch all cars)
  • /cars/:id - (fetch single car)
  • /users/:id - (fetch user appointments)

Built With

  • AuthO
  • ReactJs
  • Redux
  • Netlify (For deployment)
  • Jest
  • CSS (Modules)
  • HTML
  • Webpack
  • ES6 JavaScript.

Live Demo

For the full working application click here

Production Dependencies

Dependency Use
prop-types Declare types for props passed into React components
react React library
react-toastify Display messages to the user
react-dom React library for DOM rendering
react-redux Connects React components to Redux
react-router-dom React library for routing
redux Library for unidirectional data flows
redux-thunk Async redux library
auth0-js Auth0 Authentication
react-hook-form React library for form

Development Dependencies

Dependency Use
babel-eslint Lint modern JavaScript via ESLint
eslint Lints JavaScript
eslint-plugin-react-hooks Adds additional React-hooks-related rules to ESLint
eslint-plugin-import Advanced linting of ES6 imports
eslint-plugin-react Adds additional React-related rules to ESLint
fetch-mock Mock fetch calls
jest Automated testing framework
node-fetch Make HTTP calls via fetch using Node - Used by fetch-mock
react-test-renderer Render React components for testing
@testing-library Test React components
redux-immutable-state-invariant Warn when Redux state is mutated
redux-mock-store Mock Redux store for testing
stylelint Lints Css
stylelint-config-standard Advanced linting configoration for css
stylelint-csstree-validator Advanced linting validation for css
stylelint-scss Adds additional SCSS-related rules to StyleLint

Installation

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

Setup

Clone this repository

Follow:

  1. cd into the project directory
  2. run yarn install
  3. run yarn start
  4. Navigate to localhost:3000

Author

👤 Somoye Ayotunde

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

Utilizing Auth0 for Authentication and Authorization, Redux for state management, this application is built as a single page app consuming a Ruby on Rails API for booking appointments to test drive supercars.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published