Giter VIP home page Giter VIP logo

suffragium's Introduction

Skylab NodeJS ExpressJS AngularJS ES6 Socket.io npm Bower MongoDB Monogoose HTML5,CSS3 and JS Standard - JavaScript Style Guide Browserify Materializecss ButlerImage

Screenshoots

Screenshot

Realtime voting

realtime

Data Visualitzation

dataviz


Description

Suffragium is a real time voting app where you can create your poll and get results instantly visualizing data in a way you've never done before! Suffragium is the best way to vote any quick decision and get the results at your hands.


Installation

You need to have installed NodeJS with npm, bower and MongoDB, then run commands: npm install and bower install


Configuration env file

You need to create an .env file in the project root with the following environment variables configured:

  • Port:

    PORT=3000
    
  • Mongodb path and database to use, this example uses a local database, but of course you can use any remote mongoDB, I recommend using mlab if you're new to web development.

    urlDb=mongodb://localhost:27017/NAME_DB
    
  • Secret key to encrypt cookies:

    SECRETKEY=XXXXXXXXXX
    
  • Secret word to encrypt users' passwords:

    SECRET=XXXXXXXXXX
    

To run the server:

$ npm start

All dependencies will be installed automatically

To run in dev mode or debugg mode:

$npm run dev
$npm dev:debug

API

The server part has multiple API endpoints using several routes:

  • /api -> Serves the internal data of polls and users.
  • /auth -> Serves the authentication options, register and login.

Built with:

  • Front-end

    • angular: 1.6.4
      • angular-route: 1.6.6
      • angular-jwt: 0.1.9
    • browserify: 14.4.0
    • bower: 1.8.0
    • materialize: 0.100.1
    • font-awesome: 4.7.0
    • socket.io-client: 2.0.3
  • Back-end

    • socket.io 2.0.3
    • dotenv: 4.0.0
    • express: 4.15.4
      • express-jwt: 5.3.0
    • jsonwebtoken: 7.4.3
    • mongoose: 4.11.7
    • passport: 0.4.0
      • passport-jwt: 3.0.0
      • passport-local: 1.0.0
      • passport-local-mongoose: 4.2.1

Author

Joan Albert Segura

suffragium's People

Contributors

jalbertsr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.