2023-03-20 workshop
Learning node express routing with parameters.
This is simple 3 item shop, buy 1 item at a time, save order info, display orders, and change order status.
Database - json file;
🎯 Goals:
-
Create shopping cart with three chosen items. Show "Buy" button near every item. Click on the "Buy" button should redirect user to the payment page:
where user has to be able to enter/choose name, surname, payment type(Paypal, Mastercard, Visa), delivery method (home, parcel locker); Save order details in database.json file.Inform user about successful order with message 'Your goods will be delivered in three days'. Save sold item in already saved file.
-
Create manager page, with all orders displayed. Every new order should get status 'Preparing' by default. Create functionality for a manager to change order status from 'preparing' to 'sent'.
Must have Node.js installed
-
Clone the repo
-
Go into project directory and Install NPM packages
npm install
-
use application:
npm start