Total Pageviews

Sunday, 20 October 2024

一个express.js项目scadies


  1. Clone it.
git clone https://github.com/Adkimsm/scadies
cd scadies
rm -rf yarn.lock 
  1. Install the dependencies. We use yarn to manage our dependencies.
建议用npm install)
  1. Run it through turbo:
(建议用npm run dev)
from https://github.com/Adkimsm/scadies 
(https://github.com/Adkimsm/scadies/blob/main/packages/core/src/index.js,
https://github.com/Adkimsm/scadies/blob/main/packages/core/src/pages/home.js) 
-----
示例:
12799@DESKTOP-B6LK9IO MINGW64 ~/scadies-blog (main)
$ npm run dev
显示:
> dev
> turbo run dev --parallel

• Packages in scope: core
• Running dev in 1 packages
• Remote caching disabled
core:dev: cache bypass, force executing 5a689c82fda310ab
core:dev:
core:dev: > core@2.0.0 dev
core:dev: > nodemon ./src/index.js
core:dev:
core:dev: [nodemon] 3.1.7
core:dev: [nodemon] to restart at any time, enter `rs`
core:dev: [nodemon] watching path(s): *.*
core:dev: [nodemon] watching extensions: js,mjs,cjs,json
core:dev: [nodemon] starting `node ./src/index.js`
core:dev: Example app listening on port 3000
这里,我就是在git-bash.exe程序里面操作的。)
在浏览器里访问http://127.0.0.1:3000/
显示:Hello, World!
 

No comments:

Post a Comment