This project demonstrates a basic full-stack application using Node.js/Express for the back-end and React with Material-UI for the front-end.
- Back-End: API with
GETandPOSTendpoints for item management. - Front-End: Displays items and includes a form for adding new items with validation.
- Error Handling: User-friendly error messages for failed actions.
- Navigate to the back-end folder:
cd fullstack-eval - Install dependencies:
npm install - Run the server:
node index.js
- Navigate to the front-end folder:
cd frontend - Install dependencies:
npm install - Start the development server:
npm start
GET /items- Retrieves all items.POST /items- Adds a new item (requires anamein the request body).
- Ensure the back-end server runs on
http://localhost:5001. - The front-end fetches data from this back-end endpoint.