| api | ||
| css | ||
| js | ||
| node_modules | ||
| origin | ||
| pages | ||
| templates | ||
| uploads | ||
| utilities | ||
| .gitignore | ||
| db.js | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| scholarship.sql | ||
介紹
- 一個簡單的 web,提供登入和驗證正確帳號功能
- 利用 express.js 開發
環境要求
- nodejs :
v18以上
安裝
git clone https://github.com/tommygood/Express_Example.git
使用
node index.js- 開啟 {ip}:5000 於瀏覽器
檔案結構
- api : 處理 api 的腳本
- pages : 後端要回傳給前端的頁面
- utilities : 後端 js 共用的 function
- css : 前端 html 會用到的 css
- js : 前端 html 會用到的 js
- templates : 前端 html
- index.js : 專案的進入點
- package.json : 專案的資訊、會用到的套件...