Skip to content

Latest commit

 

History

History
80 lines (63 loc) · 941 Bytes

File metadata and controls

80 lines (63 loc) · 941 Bytes

Xgag

Express.js starter, collection for most usage library.

pre-install

loca env setup

sudo vim /etc/hosts

127.0.0.1    dev.xgag.com

sudo vim /usr/local/etc/nginx/nginx.conf

server {
    listen 80;
    server_name dev.xgag.com;
    location / {
      proxy_set_header Host      $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_pass http://127.0.0.1:7000;
    }
}

how to start

npm start
open http://localhost:7000

##include

  • jade
  • bootstrap

#TODO

  • bootstrap build in
  • collect sample page for jade

#schema

user:{
  name:
  password:
  email:
}
post:{
  voteId:
  userId:
  commentId:
  title:
  url:
  description:
  img:
  site_name:
}
vote:{
  userId:
  postId:
  good:
  bad:
}
comment:{
  userId:
  message:
}