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,568
Resource Number 37500 Last Updated 2025-02-24
¥ 0HKD 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/middle-and-background-front-end-solution-based-on-vue3-0/

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. ICTcoder will then settle the payment for the seller. Note: Please ensure to place your order and make payment through ICTcoder. If you do not place your order and make payment through ICTcoder, and the seller sends fake source code or encounters any issues, ICTcoder will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by ICTcoder until 7 days after the transaction is completed and both parties confirm that there are no issues. ICTcoder will then settle with the seller. In case of any disputes, ICTcoder will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through ICTcoder, any issues and disputes have nothing to do with ICTcoder, and ICTcoder will not be responsible for any liabilities!
View details
  • 1. ICTcoder will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. ICTcoder cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact ICTcoder for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that ICTcoder can intervene quickly.
View details
  • 1. As a third-party intermediary platform, ICTcoder solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the ICTcoder platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

ICTcoder Customer Service

24-hour online professional services