This is a simple web application that allows users to build their own custom pizza by selecting ingredients from a list of options. Once the user submits their order, the application generates an XML file containing the order details and saves it to the 'public/orders' directory. Additionally, a receipt text file is generated and saved to the 'public/receipts' directory.
- Clone this repository to your local machine.
- Navigate to the project directory.
- Install dependencies:
npm install - Start the server:
npm start - Open your web browser and go to
http://localhost:3000/ - Build your own pizza by selecting ingredients and submitting your order.
server/: Directory containing the Server file for Express to deliver the app- server.js`: The Express server file.
public/: Directory containing static files for the web application.index.html: HTML file for the main page.script.js: JavaScript file for client-side logic.orders/: Directory for storing XML files of orders.receipts/: Directory for storing text files of receipts.
- Express.js: Web framework for Node.js.
- fs: File system module for Node.js.
- path: Path module for Node.js.