GithubHelp home page GithubHelp logo

pierceshih15 / restaurantlist Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 17.0 12.6 MB

一個使用 Node.js + Express 打造的餐廳美食網站,提供使用者註冊個人帳號,管理自己的餐廳清單,如新增、修改、刪除餐廳資料等功能,同時,不僅可依照餐廳名稱與類別進行搜尋,也依照不同的條件排序餐廳資料。

JavaScript 40.12% CSS 4.81% HTML 55.07%
nodejs expressjs

restaurantlist's Introduction

皮皮美食網

一個使用 Node.js + Express 打造的餐廳美食網站,提供使用者註冊個人帳號,管理自己的餐廳清單,如新增、修改、刪除餐廳資料等功能,同時,不僅可依照餐廳名稱與類別進行搜尋,也依照不同的條件排序餐廳資料。

Demo Website

歡迎使用測試帳號登入使用,帳密如下:

帳號:[email protected]
密碼:1234

專案畫面

image

image

image

image

Features - 產品功能

  1. 使用者可以藉由第三方快速註冊登入(Facebook, Google)
  2. 使用者可以點擊任一餐廳,查看更多餐廳資訊,如地址、電話與簡介
  3. 使用者可以依照中文名稱、英文名稱與餐廳類別進行搜尋
  4. 使用者可以新增一家餐廳
  5. 使用者可以瀏覽一家餐廳的詳細資訊
  6. 使用者可以瀏覽全部所有餐廳
  7. 使用者可以修改一家餐廳的資訊
  8. 使用者可以刪除一家餐廳

Environment SetUp - 環境建置

  1. MongoDB v4.0 以上
  2. Node.js

Installing - 專案安裝流程

  1. 打開你的 terminal,Clone 此專案至本機電腦
git clone https://github.com/pierceshih15/restaurantList.git
  1. 開啟終端機(Terminal),進入存放此專案的資料夾
cd restaurantList
  1. 安裝 npm 套件
在 Terminal 輸入 npm install 指令
  1. 安裝 nodemon 套件
在 Terminal 輸入 nodemon app.js 指令
  1. 匯入種子檔案
在 Terminal 找到 Seeder.js 檔案

執行 node models/seeds/Seeder.js 匯入使用者與餐廳資料

當 terminal 出現以下字樣,即表示種子資料已新增至資料庫,按下 ctrl + c 結束執行

Mongodb is connected!

User and Restaurant data get done!
  1. 啟動伺服器,執行 app.js 檔案
nodemon app.js
  1. 當 terminal 出現以下字樣,表示伺服器與資料庫已啟動並成功連結
The Express server is running on http://localhost:3000

Mongodb is connected!

現在,你可開啟任一瀏覽器瀏覽器輸入 http://localhost:3000 開始使用皮皮美食網囉!歡迎使用官方測試帳號操作。

帳號:[email protected]
密碼:1234

Contributor - 專案開發人員

Pierce Shih

restaurantlist's People

Contributors

pierceshih15 avatar

Stargazers

AnnnieWann avatar Dawn Yu avatar CHIU YU-CHEN avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.