GithubHelp home page GithubHelp logo

restaurant_list's Introduction

餐廳清單 (restaurant list)

環境建置與需求 (prerequisites)

環境

  • Node.js 10.15.0

套件

  • express 4.17.1
  • express-handlebars 5.2.0
  • body-parser 1.19.0
  • method-override 3.0.0
  • mongoose 5.11.13
  • express-session 1.17.1
  • passport 0.4.1
  • passport-local 1.0.0
  • passport-facebook 3.0.0
  • bcryptjs 2.4.3
  • connect-flash 0.1.1
  • dotenv 8.2.0

資料庫

  • MongoDB Community Server 4.2.12

安裝與執行 (installation and execution)

  1. 選定一個資料夾,用來存放本專案。開啟終端機,移動至該資料夾,下載本專案
git clone https://github.com/Flora2020/restaurant_list.git
  1. 移動至本專案資料夾
cd restaurant_list
  1. 安裝套件
npm install
  1. 啟動伺服器
node app.js
  1. 若終端機出現下列字樣,代表伺服器成功啟動,並連接到 mongodb 資料庫
Express is listening on http://localhost:3000
mongodb connected!
  1. 執行餐廳清單:打開瀏覽器,於網址列輸入
http://localhost:3000
  1. 建立種子資料
npm run seed

功能 (features)

  • 註冊
  • 登出
  • 登入,登入後可使用下列功能
    • 瀏覽餐廳列表
    • 於餐廳列表中點擊任一間餐廳,即可瀏覽該餐廳之詳細資訊
    • 新增餐廳
    • 編輯餐廳
    • 刪除餐廳
    • 使用餐廳名稱及分類,搜尋列表中之餐廳

預覽圖 (preview image)

This is a preview image.

restaurant_list's People

Contributors

flora2020 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.