Git Product home page Git Product logo

restaurant-list-mongodb's Introduction

Restaurant-List(MongoDB)

一個簡易的餐廳清單網站,連結資料庫並加上 CRUD 的功能!可以直接在網站上新增、修改與刪除餐廳!

Installing

  1. 打開終端機

  2. 下載 Restaurant-List-MongoDB 資料夾 ( 下載位置會依你打開終端機的位置而定 )

$ git clone https://github.com/ariel92911/Restaurant-List-MongoDB.git
  1. 請在 https://developers.facebook.com/ 申請第三方登入用的金鑰

  2. 在本檔案的跟目錄新增 .env 的檔案,並輸入以下程式碼

FACEBOOK_ID = <輸入FB ID>
FACEBOOK_SECRET = <輸入FB SECRET>
FACEBOOK_CALLBACK=http://www.example.com/auth/facebook/callback 
  1. 進入 Restaurant-List-MongoDB 資料夾
$ cd Restaurant-List-MongoDB
  1. 安裝npm套件
$ npm install
  1. 至 .\Restaurant-Llis with MongoDB\models\seeds 資料夾,執行以下指令,以新增種子資料
$ node restaurantSeeder.js
  1. 回到根目錄,執行專案
$ npm run dev
  1. 在瀏覽器輸入以下網址以使用 Restaurant-List-MongoDB
http://localhost:3000

種子資料

  1. 第一位使用者:
  1. 第二位使用者:

How to use

*使用者可以新增一家餐廳

*使用者可以瀏覽一家餐廳的詳細資訊

*使用者可以瀏覽全部所有餐廳

*使用者可以修改一家餐廳的資訊

*使用者可以刪除一家餐廳

*使用者可以搜尋餐廳

*使用者可以改變餐廳排序

restaurant-list-mongodb's People

Contributors

ariel92911 avatar

Watchers

James Cloos avatar  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.