Giter Club home page Giter Club logo

vote's Introduction

宇宙公投

可到宇宙公投看demo

概述

提供線上投票之服務

可以選擇是否匿名、是否需要登入

執行

先確認是否安裝nodejs及mongodb

再安裝所需套件

npm install

在本專案根目錄創建檔案config.js 並設定幾個變數

module.exports = {
	// 與facebook登入相關
	clientID: 'xxxxxxxxxxxxxx',
	clientSecret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',

	// 專案的根目錄,定位用
	project_root: 'xxxxxxxx'

	// 與網路位置相關
	host: 'xxx',
	port: xxx,                 // 真正跑在電腦上的port
	proxy_port: xxx,             // 外部所能接觸的port,會反向代理給上面那個port,若無反向代理,填一樣就好
}

最後

node app.js

vote's People

Contributors

mros avatar

Stargazers

 avatar  avatar

Watchers

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