Tourism Review 是一個使用 Node.js + Express + MySQL/ClearDB 建立的後端專案,使用 Github 自動化部署於 Heroku。
本網站以 全國休閒農業區旅遊資訊 作為資料根據,建置台灣在地休閒農場討論網站,內容包含:
- 首頁: 最新消息、最新上架景點、最新留言綜覽
- 所有景點與單一景點資訊
- 帳號系統:個人帳號之建置與個人資料修改、Facebook 第三方認證登入
- 留言系統:使用者可以於單一景點下方留言
- 收藏系統:使用者可以按愛心收藏喜歡的景點
- 追蹤系統:使用者可以追蹤其他使用者
- 後台管理系統:管理員 CRUD
| role | password | |
|---|---|---|
| user | user1@example.com | 12345678 |
| admin | admin@example.com | admin |
- Node.js, Express, MySQL
- 支援 Facebook Login
- 網站使用 Github 自動化部署於 Heroku
- 整合 imgur API,實作上傳圖片功能
- 採用 bcrypt 處理使用者密碼
- 結合 Bootstrap & Handlebars 完成前端版面設置
Tourism Review is a backend project built with Node.js + Express + MySQL/ClearDB, deployed on Heroku.
It's an online tourism information of national leisure agricultural areas platform that can help you explore attractions. You can leave a comment or bookmark your favorite attractions, follow top travel influencers and design your perfect vacation by choosing from the best attractions.
As a visitor, you can...
- Browse and search attractions.
- Check out the detail of attractions and leave a comment.
- Bookmark your favorite attractions.
- Follow top travel influencers.
- Below is a user account you can use
| role | password | |
|---|---|---|
| user | user1@example.com | 12345678 |
As a admin, you can ...
- Create, edit, delete attractions at attractions management page.
- You can also delete comments bellow the attraction page as well.
- Below is a admin account you can use
| role | password | |
|---|---|---|
| admin | admin@example.com | admin |
The following instruction will walk you through the installation and settings needed to run this project on your local device.
git clone https://github.com/Rubylago/tourism-information.gitCreate database via MySQL Workbench
drop database if exists tourism;
create database tourism;
npm install- Facebook for Developers:create a new App with Facebook Login feature, an App ID and Secret Key will be generated automatically.
.env.example file containing all environment variables defined in .env
npx sequelize db:migrate
npx sequelize db:seed:allnpm run start> app running http://localhost:3000opendata: Tourism Information of National Leisure Agricultural Areas
