Skip to content

zcrossoverz/eCommerceWebsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

E-Commerce website

The backend for an e-commerce website built with Express.js, TypeORM, MySQL, and TypeScript.

Requirements

  • Node.js
  • TypeScript
  • MySQL

Installation

  1. Clone the repository:
git clone https://github.com/zcrossoverz/eCommerceWebsite.git

cd eCommerceWebsite
cd server
  1. Install the dependencies:
npm install
  1. Rename file .env.example into .env and setup config

  2. Start the development server:

npm run dev

The backend will be running on http://localhost:3000. PORT can be change in .env file.

Tools and Libraries

  • Express.js: Fast, unopinionated, minimalist web framework for Node.js
  • TypeORM: ORM for TypeScript and JavaScript that can run in Node.js, browser, and React Native.
  • CORS: Express middleware for handling Cross-Origin Resource Sharing (CORS)
  • TypeScript: Superset of JavaScript that adds optional static typing and other features to the language.

The frontend for an e-commerce website built with React.js, vite, redux and TypeScript.

Installation

  1. Clone the repository:
git clone https://github.com/zcrossoverz/eCommerceWebsite.git

cd eCommerceWebsite
cd client
  1. Install the dependencies:
npm install
  1. Start the development server:
npm run dev

The frontend will be running on http://localhost:3001. PORT can be change in vite.config.ts

 server: {
    port: 3001,
  }

Cài extension và setup VS Code

Các Extension nên cài

  • ESLint

  • Prettier - Code formatter

  • Tailwindcss

  • EditorConfig for VS Code

Cấu hình VS Code

  • Bật Format On Save
  • Chọn Default Formatter là Prettier