- Node.js
- TypeScript
- MySQL
- Clone the repository:
git clone https://github.com/zcrossoverz/eCommerceWebsite.git
cd eCommerceWebsite
cd server
- Install the dependencies:
npm install
-
Rename file
.env.example
into.env
and setup config -
Start the development server:
npm run dev
The backend will be running on http://localhost:3000
. PORT can be change in .env file.
- 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.
- Clone the repository:
git clone https://github.com/zcrossoverz/eCommerceWebsite.git
cd eCommerceWebsite
cd client
- Install the dependencies:
npm install
- 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á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