專案採前後端分離開發,前端使用 Vue.js/ Vuex,後端使用 Express.js
https://chacowang0125.github.io/simple-twitter-challenge/#/signin
- 使用者帳號:
user1
- 管理員帳號:
root
- 密碼:皆為
12345678
- 前台與後台有不同的登入入口, 使用者只能使用前台功能,管理員只能使用後台功能
- 使用者可以瀏覽所有 tweets 和該 tweet 的案讚數以及留言
- 使用者可以發布新的 tweet,並對現有的 tweet 進行回覆和 like/unlike
- 使用者可以追蹤/退追其他使用者,前 10 名最高追隨者的使用者也會顯示
- 使用者可以更改基本資料,也可以更改顯示給其他使用者的資料
- 使用者可以在私人聊天室傳訊息給特定使用者,並跳出未讀通知
- 使用者可以在公開聊天室傳訊息給其他正在線上的使用者
- 管理員可以看到所有 tweets 並對其進行刪除
- 管理員可以看到所有使用者資料
- 使用者可以在公開聊天室傳訊息給其他使用者
git clone https://github.com/chacowang0125/simple-twitter-challenge.git
cd simple-twitter-challenge
npm install
npm run serve
git clone https://github.com/Emily81926/twitter-api-2020.git
cd twitter-api-2020
npm install
create database ac_twitter_workspace;
npx sequelize db:migrate
npx sequelize db:seed:all
npm run dev
nodemon app.js // windows使用者使用這行
Example app listening on port 3000!
git clone https://github.com/chacowang0125/simple-twitter-challenge.git
cd twitter-front-end-vue
npm install
const baseURL = 'http://localhost:3000/api'
npm run serve