Middle and background front-end solution based on Vue3.0

Middle and background front-end solution based on Vue3.0

2022-09-02 0 1,148
Resource Number 37500 Last Updated 2025-02-24
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

This issue recommends a set of excellent back-end front-end solutions——fes.js。

Fes.js is a good front-end application solution. Fs.js is based on Vue 3.0 and routing, and supports both configured routing and contractual routing, and extends the functionality accordingly. With a complete plug-in system covering compile-time and run-time life cycles, it supports a variety of functional extensions and business requirements.

Middle and background front-end solution based on Vue3.0插图

Fes.js functional features

  • Simple, based on Vue.js 3.0, easy to use. Implement the idea of “convention is better than configuration”, replace configuration with convention as much as possible in the design of plug-ins, and still provide a unified plug-in configuration entrance, simple and concise without loss of flexibility. Provide consistent API entry, consistent experience, easier to learn.
  • Fast, Fes.js built-in routing, construction, plug-in management, providing testing, layout, permissions, internationalization, state management, request, data dictionary, Svg and other plug-ins, can meet most of the daily development needs.
  • Robust, only need to care about the content of the page, reduce the chance of error! Provide unit testing, coverage testing capabilities to ensure project quality.
  • Extensible, learn from UMI to achieve a complete life cycle and plug-in mechanism, plug-ins can manage the compile time and runtime of the project, capabilities can be packaged through plug-ins, coordinated and orderly operation in Fes.js.
  • Facing the future, while meeting the needs, we will not stop exploring new technologies. Vue3.0 has been used to improve application performance, webpack5 has been used to improve build performance and implement microservices, and new technologies such as vite will be explored in the future.
  • Community ecology, the main focus of FS.js is the developer experience, and we are constantly improving the framework. If you have questions or queries, the community of Fes.js is here to help you.

Fs.js architecture

Middle and background front-end solution based on Vue3.0插图1

get started quickly

1.Dependent environment

The first step is to have Node.js and make sure the node version is 10.13 or later

# print node versions node -vv10.13.0

yarn is recommended to manage npm dependencies

# Global installation yarnnpm i yarn -g

2.Create project

Step 1 Create a workspace

If the workspace does not exist, create it first:

# create directory workspacemkdir workspace# Enter directory workspacecd workspace

If the workspace already exists, go directly to it

# Enter directory workspacecd workspace

Step 2 Create a project in the workspace

Create with yarn

yarn create @fesjs/fes-app myapp

Or use NPM

npx @fesjs/create-fes-app myapp

If the project folder workspace/myapp already exists, it will prompt you that the directory already exists:

Middle and background front-end solution based on Vue3.0插图2

you can choose:

  • Overwrite Deletes the project folder and recreates the project.
  • Merge preserves the original project folder and overwrites the current directory file with a template file if the same file exists.

If you select Overwrite or Merge or if the workspace/myapp project directory does not exist, you will be prompted to select a template:

Middle and background front-end solution based on Vue3.0插图3

You can choose either the default PC type for mid-background front-end applications or the H5 type for mobile.

Step 3 Install dependencies

Installing using yarn

#Enter project directory cd myapp# Installation dependency yarn 

Or use NPM

# Enter project directory cd myapp# Installation dependency npm i 

3.Start-up project

Start with yarn

#Development and debugging yarn devyarn run v1.22.4$ fes devStarting the development server http://localhost:8080 ...✔ Webpack  Compiled successfully in 15.91s DONE  Compiled successfully in 15917ms                               11:17:08 AM

Or use NPM

# Development and debugging npm run dev> fes devStarting the development server http://localhost:8080 ...✔ Webpack  Compiled successfully in 3.66s DONE  Compiled successfully in 3662ms                                11:17:46 AM

Fs.js will start a hot-reload development server at http://localhost:8080. When you modify your.vue file, the content in your browser will also be updated automatically.

Middle and background front-end solution based on Vue3.0插图4

4.Deployment release

Build with yarn

# structure yarn buildyarn run v1.22.4$ fes build✔ Webpack  Compiled successfully in 45.37s✨  Done in 48.87s.

cstructure

# structure npm run build> fes build✔ Webpack  Compiled successfully in 45.37s

The build product is generated by default under./dist and then viewed through the tree command

tree ./distdist├── chunk-vendors.27cd4686.js├── chunk-vendors.a5f5de67.css├── index.11411d43.css├── index.d72f1ba2.js├── index.html├── logo.png└── static    └── logo.0f85bba0.png

5.Local verification

Before publishing, you can do local validation with serve, and the results should be the same as when executing fes dev.

6.deploy

Once local verification is complete, you are ready to deploy. You need to deploy the dist directory to the server.

Fes.js plug-in

plug-in

introduce

@fesjs/plugin-access

Provides permission control over page resources

@fesjs/plugin-enums

Provides unified enumeration access and rich functions to handle enumerations

@fesjs/plugin-icon

svg files are automatically registered as components

@fesjs/plugin-jest

Based on Jest, provide unit testing, coverage testing capabilities

@fesjs/plugin-layout

A simple configuration allows you to have a layout, including navigation and sidebars

@fesjs/plugin-locale

Based on the Vue I18n, provides international capabilities

@fesjs/plugin-model

Simple data management solution

@fesjs/plugin-request

Based on Axios encapsulated request, built-in to prevent repeated requests, request throttling, error handling and other functions

@fesjs/plugin-vuex

Provides status management capabilities based on Vuex

@fesjs/plugin-qiankun

Providing microservice capabilities based on qiankun

@fesjs/plugin-sass

Styles support sass

@fesjs/plugin-monaco-editor

Provides the capability of a Code editor, based on monaco-editor (the code editor used by VS Code)

You can read more on your own.

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code Middle and background front-end solution based on Vue3.0 https://ictcoder.com/kyym/middle-and-background-front-end-solution-based-on-vue3-0.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service