Expense-Tracker-Frontend: https://github.com/Tommy1023/expense-tracker
- 終端機 下載專案
git clone https://github.com/tommy1023/expense-tracker-backend.git
npm install (package.json 已提供相對應需安裝的套件)
PORT= 3000
JWT_SECRET= "your JWTToken secret"
需要與 config/config.json 一致
"development": {
"username": "root",
"password": "password",
"database": "expense_tracker",
"host": "127.0.0.1",
"dialect": "mysql"
}
- 本地資料庫
帳號:root
密碼:password
- 建立資料庫
create database expense-tracker;
npx sequelize db:migrate
npx sequelize db:seed:all
npm run dev