Skip to content

alvinkane/restaurantList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

一個使用Node.js + Express製作的餐廳清單

功能:

  1. 使用者可以新增一家餐廳
  2. 使用者可以瀏覽一家餐廳的詳細資訊
  3. 使用者可以瀏覽全部所有餐廳
  4. 使用者可以修改一家餐廳的資訊
  5. 使用者可以刪除一家餐廳

待開發事項

  1. 搜尋功能

安裝流程:

  1. 打開terminal, clone此專案
    git clone https://github.com/alvinkane/A1-restaurantList.git
    
  2. 移到存取的資料夾(A1-restaurantList)
  3. 安裝npm套件
    npm install
    
  4. 安裝nodemon套件(若有可省略)
  5. 在專案內創造一個env檔案,並在其中輸入MongoDB connection string
    MONGODB_ENV=mongodb+srv://<username>:<password>@<cluster>.pk4dwnp.mongodb.net/restaurant-list?retryWrites=true&w=majority
    
  6. 匯入種子檔案
    npm run seed
    
  7. 出現'mongodb connected!' 'done' 代表成功
  8. 執行專案
    npm run dev
    
  9. 出現 "This is listening on http://localhost:3000" 'mongodb connected'代表成功
  10. 開啟任一瀏覽器輸入This is listening on http://localhost:3000

畫面
image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors