当前位置:网站首页>egg. JS getting started navigation: installation, use and learning

egg. JS getting started navigation: installation, use and learning

2022-07-06 08:29:00 Liu Chu, Ge Nian

egg Installation and use

Global switch mirror :

npm config set registry https://registry.npm.taobao.org

We recommend using scaffolding directly , Just a few simple instructions , You can quickly build projects (npm >=6.1.0):

mkdir egg-example
cd egg-example
npm init egg --type=simple --registry https://registry.npm.taobao.org

among :type Options have the following values

Skeleton type explain
simple Simple egg Application skeleton
empty Empty egg Application skeleton
pluginegg plugin skeleton
frameworkegg framework skeleton

During the installation process, information such as filling in the project name and author will appear , You can customize , You can also enter by default
 Insert picture description here
Run the following statement again

npm i

Start project :

npm run dev

This is success
 Insert picture description here

visit :http://localhost:7001
 Insert picture description here

egg Study

Official website :https://www.eggjs.org/zh-CN

Official documents :https://www.eggjs.org/zh-CN/tutorials

API file ( english ):https://www.eggjs.org/api/index.html

原网站

版权声明
本文为[Liu Chu, Ge Nian]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131823348784.html