Please make sure git and pnpm are installed.
-
对本项目进行 git clone;
Perform git clone on this project;
git clone https://github.com/yjl9903/resonance-market.git cd resonance-market
-
使用 pnpm 安装依赖;
Use pnpm to install dependencies;
pnpm install
-
准备开发用的 SQLite 本地数据库(位于:
./sqlite.db
);Prepare development SQLite database;
pnpm db:prepare:dev
-
运行开发服务器;
Run the development server;
pnpm run dev
会在 http://localhost:3000
启动开发测试。
Start the development server on http://localhost:3000
.
本程序是一个 Nuxt 3 应用程序。所以,需自行部署者,可参考 Nuxt 的部署指南。总而言之,本程序支持借助 Node.js 在服务器上运行,也可以托管到主流的 Serverless 型的网站托管服务。我们自己选择了后者,可以参考 /.github 的相关 GitHub Actions 流程文件。
This program is a Nuxt 3 application. Therefore, those who need to deploy by themselves can refer to Nuxt's deployment guide. All in all, this program supports running on the server with Node.js, and can also be hosted on mainstream Serverless website hosting services. We chose the latter ourselves, you can refer to the related GitHub Actions process files in /.github.
# 构建生产用程序 / Build the application for production
pnpm run build
# 对生产构建进行预览 / Locally preview production build
pnpm run preview
本程序附带 MIT License 开源。使用本程序及其源代码时,请遵守 MIT License。
This program comes with the MIT License.