This is a simple web application built with React and Express that allows employees to submit and manage purchase orders. The application includes a front-end web interface for submitting purchase order details and a back-end API service for processing the submissions.
- Employees can submit purchase orders by providing the date, vendor name, and uploading a CSV file containing purchase order items.
- The CSV file should contain the following required information for each item: Model Number, Unit Price, and Quantity.
- The back-end API validates the submitted data and stores the purchase order information in the preferred storage.
- The front-end displays a success message upon successful submission or shows validation errors if any.
- The application handles parsing the CSV file and relaying validation errors from the back-end to the front-end.
-
Front-end:
- React
- Create React App
- HTML
- CSS
-
Back-end:
- Express
- Multer (for file uploads)
- csv-parser (for parsing CSV files)
- Node.js and npm should be installed on your machine.
-
Clone the repository:
git clone <repository-url>
-
Install the dependencies for the back-end:
cd backend npm install
-
Install the dependencies for the front-end:
cd frontend npm install
-
Start the back-end server:
cd backend npm start
-
Start the front-end development server:
cd frontend npm start