GithubHelp home page GithubHelp logo

restaurantlist_addlogin's Introduction

餐廳清單_具登入登出功能

此專案主要透過 mongoDB 與 Express 建立餐廳資料與 API,進行 CRUD 與顯示、搜尋餐廳名稱及詳細資訊。 此外,新增 bcrypt 加密及雜湊提高密碼安全性,並使用 passport 套件新增本地登入及 Facebook 登入。

產品功能

  • 承接前個餐廳清單的功能(搭配模板引擎(handlebars)顯示餐廳資訊、製作搜尋欄、搭配 mongoose 以及種子資料)
  • 利用 express.Router()簡化路由設定
  • 加入排序(sorting)功能,可以更方便查找想要的餐廳資料
  • 參考 RESTful 設計,利用 method-override 建立 GET,POST,PUT,DELETE 使路由帶有語義
  • 透過 connect-flash,當註冊時未輸入正確內容或登出時,顯示對應訊息
  • 利用 passport 新增本地及 facebook 登入
  • 使用 bcrypt 加鹽及雜湊增加密碼安全性

專案畫面

image

image

image

安裝流程

  1. git clone 下載檔案

    git clone https://github.com/Ray7808/restaurantList.git
    
  2. 安裝相關套件

    npm install
    
  3. 新增種子資料

    npm run seed
    
  4. 執行程式

    npm run start
    

使用的套件

  • Bootstrap
  • Express
  • Handlebars
  • Nodemon
  • dotenv
  • body-parser
  • mongodb
  • mongoose
  • method-override
  • connect-flash
  • bcryptjs
  • passport
  • passport-facebook
  • passport-local

restaurantlist_addlogin's People

Contributors

ray7808 avatar

Watchers

 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.