Logo

Svelte e-commerce demo

Original repository · Report Bug · Request Feature

About the project

Demo of a real case of ecommerce made for Web programming, Design & Usability (Università degli studi di Catania - Magistrale in Informatica (Curriculum Data Science) A.A. 2022-2023)

Features

  • Admin Panel:
    • Creation of Product
    • Order management
    • User views
  • Authentication
  • Searchbar (on products page)
  • Shopping cart management
  • Simulation of purchase (it is not necessary to be logged in)
  • Order status
  • Notify with email for: password recovery, after checkout and when the status of order change
  • MongoDb (using MongoDb Cloud )
  • Product's image upload

Libraries

Server side

  • Express
  • Mongoose to handle database
  • Nodemailer to sending emails

Front end side

  • SvelteKit
  • Bootstrap 5.2 with SASS integration
  • i18n (sveltekit-i18n)

    Getting started

To run the server side, in this folder:

npm run dev

To run the client side, go to client folder and then:

npm run dev

Requirements

  • Node v16.17.0

Run Chrome with disabled cors option (OS X)

open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security

Run with Docker

Build server:

docker image build . -t <your_dockerhub_name>/<container_name>:tag

Run

docker run -p 4000:3000 <image_name/image_id>

Stop

docker stop -t 10 18d2d8935a4f

Top categories

Loading Svelte Themes