Coder Social home page Coder Social logo

jinghong-home-vue's Introduction

精弘首页前端仓库

本项目使用:

  • Vue.js 3 前端框架
    • TypeScript
    • Vite 构建工具
    • Vue-router 路由管理
    • Pinia 全局状态管理
    • Vue-Echarts 数据可视化
    • Sass

前端代码

  • src 源代码目录
    • apis 和后端的API, 封装了axios
    • App.vue 根组件
    • assets 静态文件目录
    • components 组件
    • router 路由管理
    • stores 状态管理
    • types 类型管理
    • utils 工具/其他东西
    • views 页面
  • dist 构建目录

前端部署:

  1. 安装依赖
pnpm install
  1. 修改配置:/join-us-vue/src/utils/const.tsENVpro进入生产模式。

  2. 项目打包

pnpm run build
  1. 上传/dist目录到服务器

  2. 配置静态资源服务器(以nginx为例)

	server {
		listen 8080;                                        #监听端口
		server_name jh-home;                                # 服务名称,可任选
		location / {                                          
			alias /www/jhhome/;
			index index.html;
			try_files $uri $uri/ /index.html;               # 神奇的一行
		}
	}
  1. 注意检查您配置的监听端口是否开放。

jinghong-home-vue's People

Contributors

destinyofice avatar finleyge avatar lyyzzz6 avatar patrick-star-cn avatar patrickill avatar xixiibn5100 avatar yzyshimisi avatar zhullyb avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.