Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.26 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.26 KB

Node.js Phone Shop

A simple phone shop made with Node.js, Express.js, EJS and Bootstrap. The app is deployed to fly.io and is available at https://phone-shop.fly.dev/. It uses MongoDB Atlas as a database and sessions to store the cart.

Appearance

Home page

image

Checkout

image

Setup

npm install

Running

npm start

Open http://localhost:3000 to view it in your browser.

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

Areas to improve

  • change in_stock (boolean) field of Phone model to quantity (number)
  • change EJS to React to enable reactivity (e.g. adding to cart without a full page refresh)
  • add more phones
  • fix alerts to always appear immediately (sometimes they appear only after a refresh)
  • fix alerts bug (sometimes the message is not displayed)
  • add sorting and filtering
  • add payment form and payment processing
  • add user authentication and authorization
  • add admin panel