bentbot / legalize

Simple voting script based in Angular 2 with a NodeJS backend.

Home Page:https://isweedlegalyet.ca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legalize

Weed is being legalized in Canada. This website lets users cast a ballot to represent a vote. http://isweedlegalyet.ca

This project was generated with Angular CLI version 1.0.0. With the use of a NodeJS backend located in index.js, this Angular project operates as a self-contained cloud application.

Increments is an open-source vote machine used to tabulate votes and generaste statistics.

Build

Run node index.js to build and host the project. The build will appear online at http://localhost:8080/ and can be routed to a domain name such as this one with a server such as Nginx.

Backend

Usiually Angular 2 routes requests to a PHP or Ruby backend using HTTP requests. This project forgoes the need of a seperate program and instead creates a small Express server. Spawning a client ng build process to render the application and using Socket.IO to communicate with Angular in the browser makes for a stellar team of serve and delivery.

About

Simple voting script based in Angular 2 with a NodeJS backend.

https://isweedlegalyet.ca


Languages

Language:TypeScript 56.4%Language:JavaScript 22.7%Language:CSS 13.3%Language:HTML 7.6%