- node>=18
- pnpm>=7.30
- Vue Official<=2.1.6
- TypeScript<=5.5.4
Run git clone https://github.com/thornboo/jincheng-campus.git
to pull the project.
Run pnpm i
to install dependencies.
Run pnpm run dev
to start the H5
version.
- Web Platform: Run
pnpm dev:h5
, then open http://localhost:9000/. - Weixin Platform: Run
pnpm dev:mp-weixin
, then open the WeChat Developer Tools, import the local folder, and select thedist/dev/mp-weixin
directory in this project. - APP Platform: Run
pnpm dev:app
, then openHBuilderX
, import the newly generateddist/dev/app
folder, and select the simulator for development (preferred for testing) or run on the Android/iOS base.
- Web Platform: Run
pnpm build:h5
to build the project. The built files are located indist/build/h5
, which can be hosted on a web server like nginx. If the final deployment is not in the root directory, modify theh5.router.base
property in themanifest.config.ts
file. - Weixin Platform: Run
pnpm build:mp-weixin
to build the project. The built files are located indist/build/mp-weixin
. Then, import them into the WeChat Developer Tools and click the "Upload" button in the top-right corner. - APP Platform: Run
pnpm build:app
, then openHBuilderX
, import the newly generateddist/build/app
folder, and select "Release - APP Cloud Packaging".
- vuejs3 - A progressive JavaScript framework for building user interfaces. It's easy to learn, high-performance, and suitable for a wide range of scenarios.
- uni-app - Write a single codebase and run it on multiple platforms.
- Wot Design Uni - Developed based on Vue3 and TypeScript, offering 70+ high-quality components with support for dark mode, internationalization, and theme customization.
Copyright (c) 2024 thornboo