Skip to content

SpaceKrakens/Ranked-Vote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ranked-Vote

A ranked voting system with github authentication.

Local testing

You need to have node.js installed (Download), then restart, after restarting call npm update.

Install the dependencies:

npm install

Now you need to get your github client id and secret id so I would suggest create an OAuth just for Ranked-Vote. Go to github settings (personal settings), then go to OAuth applications then click Register a new application. Then make sure your application settings look like this: image

Now you can choose to run the server:

# The github client id and secret can be found on the integration page
GITHUB_CLIENT_ID=... GITHUB_CLIENT_SECRET=... npm start

Additional options that can be set via enviroment variables:

PORT        -  the port node listens on (defaults to 3000)
NODE_ENV    -  the enviroment node runs on (development, production and test) 
               and defaults to development

ESLint

An ESLint config file have been added for those that want to use it. It is based on Felix Geisendörfer'sNode.js Style Guide with tweaks to the rules on indentation(4 Spaces instead of 2) and the allowed length of lines (100 instead of 80).

Currently ESLint is not part of the project. To use it please install it globaly (or without saving it in the package.json file).

About

a Ranked-Voting system for developers using GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published