/EZ_works

This project is a simple single-page web application built with React.js, designed to showcase how to create a responsive form that integrates with a RESTful API. The form allows users to submit an email address and performs both front-end and API validations.

Primary LanguageJavaScript

EZ Works

Overview

This project is a simple single-page web application built with React.js, designed to showcase how to create a responsive form that integrates with a RESTful API. The form allows users to submit an email address and performs both front-end and API validations.

Features

  • Responsive design for various screen sizes, including mobile, tablet, and desktop.
  • Front-end validation to ensure the email field is not empty and follows a valid email format.
  • API integration using Axios for sending POST requests to the provided API endpoint.
  • Handling API responses, including error messages and success messages.
  • Demonstrates error handling for cases when the email ends with "@ez.works."

Technologies Used

  • React.js: A popular JavaScript library for building user interfaces.
  • Axios: A promise-based HTTP client for making API requests.
  • CSS: Used for styling the form and making it responsive.

Getting Started

To run this project locally or contribute to it, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the necessary dependencies using npm install.
  3. Start the development server with npm start.
  4. Open your web browser and access the application at http://localhost:3000.

API Documentation

Usage

  1. Access the application on your preferred device.
  2. Fill in the email field and click the "Contact Me" button.
  3. Front-end validation will prevent empty submissions or invalid email formats.
  4. If the email ends with "@ez.works," the API will return an error message.
  5. Successful submissions will display a "Form Submitted" message.

Feel free to explore the code, customize the styling, and adapt the project to your specific needs.

Screenshots

Screenshot (103)

Desktop View

Screenshot (112)

Tab View

Screenshot (115)

Mobile View

Screenshot (116)

Mobile View