{"id":28433377,"url":"https://github.com/log1997/vue3default","last_synced_at":"2025-08-17T07:07:56.249Z","repository":{"id":130431488,"uuid":"487687702","full_name":"LOG1997/vue3default","owner":"LOG1997","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-30T09:24:15.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T04:40:34.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LOG1997.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-02T01:50:16.000Z","updated_at":"2022-05-02T01:50:41.000Z","dependencies_parsed_at":"2023-05-05T08:47:25.900Z","dependency_job_id":null,"html_url":"https://github.com/LOG1997/vue3default","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LOG1997/vue3default","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOG1997%2Fvue3default","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOG1997%2Fvue3default/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOG1997%2Fvue3default/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOG1997%2Fvue3default/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LOG1997","download_url":"https://codeload.github.com/LOG1997/vue3default/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOG1997%2Fvue3default/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270817156,"owners_count":24650944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-05T18:09:00.211Z","updated_at":"2025-08-17T07:07:56.239Z","avatar_url":"https://github.com/LOG1997.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue 3 + TypeScript + Vite前端\n\n1. 在``vite``、``vue3``、``ts``默认项目下配置``vue-router``、``windicss``、``element-plus``、``axios``等插件。\n\n2. ``vite``配置中已将默认运行端口改为``8080``端口，后端接口配置跨域也设置为``8080``端口，所以若无必要不要更改。\n\n3. 封装```axios```模块在```src/apis```目录下，并将```api```都写到```request.js```文件中集中管理\n\n4. ``vite``配置中将``src``目录别名设置为``@``符号，可在项目中直接使用```@```\n5. 默认引入```element-plus```框架，按需使用，在需要使用到```element-plus```框架的组件中使用```import```引入即可，如：\n    ```\n    import {ElDialog} from 'element-plus'\n    ```\n\n6. ```windicss```使用方法见[此处](https://cn.windicss.org/)。\n# node express后端\n在```server```文件夹中存放后端文件。入口文件为``app.js``，默认运行在本地``4000``端口上。\n\n\n# 如何开始\n```\n//进入项目目录\ncd vue3default\n\n//安装依赖\nnpm install\n\n//进入后端目录\ncd server\n\n//安装后端依赖\nnpm install\n\n```\n\n# 命令\n在项目根目录下执行\n```\n//运行前端\nnpm run vite\n\n//运行后端\nnpm run api\n\n//前端后端一起运行\nnpm run dev\n\n//打包\nnpm run build\n```\n## 参考链接\n[vue3](https://v3.cn.vuejs.org/)、[vite](https://vitejs.cn/)、[element-plus](https://element-plus.gitee.io/zh-CN/)、[windicss](https://cn.windicss.org/)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1997%2Fvue3default","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog1997%2Fvue3default","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1997%2Fvue3default/lists"}