# VueFinal **Repository Path**: king-encyclopedia/java-eefinal ## Basic Information - **Project Name**: VueFinal - **Description**: 纯Vue+ts!!!!!!!!!!!!!!!!!!!!!!!! - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-26 - **Last Updated**: 2024-01-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 实训作业 ## 快速上手 1. 确保安装了 `NodeJS 16`,配置私有仓库,安装必要的包 ```shell # 设置加速仓库 npm config set registry https://registry.npm.taobao.org/ npm install ``` 2. 确保安装了 `Docker` ,本地运行一些必要的依赖 ```shell # 这会运行 MongoDB、Redis 的容器服务,具体的账号、密码、配置可以看 `docker-compose.yml` docker-compose up -d ``` 3. 在 `./config` 目录下新建 `app_local.cfg.ts`,你的本地配置这里(该文件不会被提交到 Git) ```javascript import { Config, getDefaultConfig } from './app_default.cfg' import _ from 'lodash' export function getLocalConfig(): Config { const config = {} as Config config.ENV = 'local' return _.merge(getDefaultConfig(), config) } ``` 5. 启动项目,项目会在本地端口 1010 启动,`http://127.0.0.1:1010` ```shell npm run dev ``` 6. 终止运行后,启用kill命令清除占用的端口(如果成功启动后再次启动报错时优先尝试这个) ```shell npm run kill ```