Skip to content

Ayanami1314/eBookStore_Frontend

Repository files navigation

使用

分支

  • master分支是互联网应用开发课程结束的分支
  • se3353分支是应用系统体系架构课程结束的分支

架构

quickStart

  1. 下载依赖(建议使用交大源)
npm install
  1. 创建.env文件
VITE_BACKEND_URL="https://localhost:8443"
WS_BACKEND_URL="wss://localhost:8443"

根据实际后端情况定义这两个环境变量即可, 如果是master分支无websocket不需要定义WS_BACKEND_URL

  1. npm run dev启动测试环境, 即可在浏览器中查看

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: "latest",
    sourceType: "module",
    project: ["./tsconfig.json", "./tsconfig.node.json"],
    tsconfigRootDir: __dirname,
  },
};
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages