The eBarber web page allows you to join as a client or a barber! If you are a client pick your favorite barber and schedule an available appointment. If you are a barber disclose your available times.
Goal | Requirements | Technologies | How To Use | License
The goal is to create a full project using TypeScript, Node.js, ReactJS, and React Native from start to finish, fulfilling all possible steps: preparing the development environment with Docker, configuring tools that help maintain code quality (EditorConfig, ESLint and Prettier) to testing with Jest, deploying, and all the coding in between.
eBarber web is a web application that can consume the eBarber API to provide its services.
NOTE: Check the eBarber API here.
- Project structure
- Boilerplate with Create React App
- Prepare EditorConfig
- Configure ESLint
- Set up Prettier
- Global Styles and Components
- Styled Components library
- Global Styles Component
- Input Component
- Button Component
- Sign In Page
- React-Icons library
- Polished library
- Validate Sign In
- Sign Up Page
- Managing the Form with Unform library
- Input Usability with visual cues (On Focus)
- Validating the Form with Yup library
- Displaying Input errors
- Sign Up Request to the Back-end with Axios
- Authentication
- Enable API access with CORS
- Sign In with Context API & useAuth custom hook
- Store User information and Token (JWT) with Local Storage
- Sign Out with Context API
- Toast Notifications
- Toast Notifications structure
- useToast custom hook
- Add and Remove Toast
- Animating Toast
- Application Routes
- Configure Routes with React Router V4
- Authenticated Routes
- More steps coming soon...
This project was developed with the following technologies:
- TypeScript
- ReactJS
- Create React App
- React Router v4
- Styled-Components
- Polished
- React-Icons
- React-Spring
- Axios
- Unform
- Yup
- UUIDv4
- VS Code with EditorConfig, ESLint and Prettier
To clone and run this application, you need Git, ReactJS 16.13.1 (or higher), and Yarn v1.13 (or higher) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/stevescruz/ebarber_web.git
# Go into the repository
$ cd ebarber_web
# Install dependencies
$ yarn install
# Run the app
$ yarn start
This project is under the MIT license.