Code Monkey home page Code Monkey logo

js-bin's Introduction

JS-Bin

Javascript Pair Programming Tool Built with React, Web Workers and Express.

Admin-Page

The Admin Page allows for the creation, deletion of Bins. From this screen bins can also have passwords set on them that will prompt the users when they navigate to the bin to log in.

Bin

Web Sockets

Bin's allow for the execution of code with the results being displayed in the terminal. The bins use Web Sockets in order to communicate between other active users in the bin. Each Bin is setup in it's own room, which means that the sockets only connect users that are in the same bin.

Web Worker

Additionally the "Run Code" runs a Web Worker with the current code in the Code Editor packaged inside of it. All console.log's inside of this are intercepted and sent back to the bin to be displayed in the terminal.


Building

Admin Page
npm run build:admin

This will build the Admin react code into the 'build/admin' folder.

Bin Page
npm run build:bin

This will build the Bin react code into the 'build/react' folder.

Login Page
npm run build:login

This will build the Login react code into the 'build/login' folder.


Server Start

npm start

Start's the server at http://localhost:3000


Using the Code

Build all of the files, and then start the server. From here naviagte to http://localhost:3000/admin this page will allow for the creation of Bin. Once a bin has been created it can be opened by pressing the open button or by navigating to http://localhost:3000/{BINNAME}

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.