Skip to content

A simple phone shop made with Node.js, Express.js, JSX and Bootstrap.

Notifications You must be signed in to change notification settings

kyrstke/nodejs-phone-shop

Repository files navigation

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

About

A simple phone shop made with Node.js, Express.js, JSX and Bootstrap.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published