Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Two Server

Environment

Tools

  1. Node.js
  2. MongoDB

Node.js modules

  1. Express - Web application framework for node
  2. Mongoose - Elegant mongodb object modeling for node.js
  3. Express-restify-mongoose - library provides mongoose database models with a REST interface.

Javascript frameworks

  1. jQuery 1.11.1

Usage

  1. Clone the project into your workspace, then import it.
  2. Make sure that you had installed Node.js & MongoDB.
  3. Create folder data in project folder.
  4. Open command prompt from MongoDB/bin(shift+right click), execute mongod --dbpath=ProjTwoServerPath/data
  5. Open new command prompt, execute npm install in project folder to install node modules.
  6. execute npm start or node app.js to start the server at localhost:3000

Table Schema

TableName Restaurant
column name type remark example
GID OID 流水號 123456
Name String 店家名稱 金仙排骨飯
Address String 地址 台北市xxxxxx
Phone String 電話 02-1234567678
Longitude String 經度 34.12345
Latitude String 緯度 121.3456
Introduction String 簡介
Aircon boolean 是否有冷氣
Stars int 推薦星星數 1星、2星……
TableName Menu
column name type remark example
GID OID 流水號 123456
RestaurantId OID 店家編號 123456
Name String 餐點名稱 魯肉飯
Price int 價錢 35
Introduction String 簡介
Type String 餐點種類 飯類/麵類/飲料…
remark String 備註

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages