Giter Site home page Giter Site logo

pviolette3 / freedom-of-speech Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 1.0 417 KB

A chat server that censors real time what you type based off of censorship in selected countries. This project is for ethics.

JavaScript 95.90% Shell 0.50% Python 3.60%

freedom-of-speech's Introduction

This is a project for demoing how censorship works in a variety of countries for ga tech cs 4001 class.

================ Environment setup

Install node + npm.

Then, checkout the project

git clone https://github.com/pviolette3/freedom-of-speech && cd freedom-of-speech

and install packages (once in cloned repo)

npm install

=========== Running App

To run locally, just

node app.js

The app binds to localhost:8080, which you can visit in the browser http://localhost:8080/

By default, the app does NOT hook up to mongo db. To activate the database backend, simply export the envirnment variable RUN_MONGO to anything except 'no'.

To change the port on which the app runs, set the PORT environment variable.

============= Running Tests

Unit tests are written with the mocha framework. To run, install mocha globally

npm install -g mocha

or add a local installation of mocha to the path. Mocha installs to '(freedom of speech dir)/node_modules/mocha/bin'

To run tests, start in the root of the repository and run

mocha -R spec

To have mocha automatically run the tests when a file changes, add -G and -w parameters

mocha -R spec -G -w

freedom-of-speech's People

Contributors

isbadwolf avatar bennuttle avatar ctisdel3 avatar pviolette3 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar Bartek avatar

Forkers

ctisdel3

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.