React + 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:

react tailwindcss react router

yarn add react-router-dom

react-icons

yarn add react-icons

auth 0 zustand

yarn add zustand

ant design mobile(antd-mobile)

yarn add antd-mobile

jwt-decode

yarn add jwt-decode
  1. zustand

  2. auth0 × 登录方案是UID(Miniapp) + Auth0 两套机制(WebApp)

  3. prisma orm(SSR)

  4. record enter、exist time and duration

  5. 复制 assets

  6. 复制components

  7. 复制store

  8. 把 , 包裹app

  9. 修改包信息

    "name": "miniapp-nextjs",
    "author": "FGA TECH TEAM",
    "private": true,
    "version": "0.0.1",
    "app_id": "04f6f82ae7c24608917b",
    "shared": false,
    "instagram": "https://www.instagram.com/fgacyc/",
    "github": "https://github.com/fgacyc/",
    "type": "module",

6.修改vite.config.js

export default defineConfig({
  plugins: [react()],
  server: {
    open: true,
    port: 5173,
    host: '0.0.0.0'
  },
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
    },
  },
})
  1. 修改全局样式
body{
    background-color: #F2F3F5;
    overflow-y: hidden;
}