This React application combines Material-UI for styling, Context API for state management, and Formik with Yup for form handling and validation. Additionally, it integrates a mock API using json-server
for data interaction.
- Material-UI: Provides beautiful and responsive components for styling.
- Context API: Manages global state across components.
- Formik & Yup: Simplifies form handling and validation.
- json-server: Sets up a mock API for data manipulation.
-
Clone this repository:
git clone <repository_url> cd project
-
Install dependencies:
npm install
-
Start the json-server for simulate a restful api using a JSON file:
npm run json-server
-
Run the React app:
npm start
-
Open the app in your browser at
http://localhost:3000
.
- components: Contains various React components.
- context: Manages Context API logic and state.
- api: Holds the mock API setup with
json-server
. - App.js / index.js: Entry points for the React application.