Giter Club home page Giter Club logo

pwhiteboard's Introduction

pWhiteboard - collaboration made easy!

Hi! I'm your Markdown file in pWhiteboard. If you want to learn about pWhiteboard, you can read me. If you want to play with it, visit pWhiteboard. Once you have finished with me, you can start a local server on your own device.

Installation

You will require nodejs for this project.

In Terminal, type

git clone https://github.com/Mind0Bender/pwhiteboard.git

or, you can download the zip file and extract it.

After cloning, go to the pwhiteboard directory

cd pwhiteboard

Install the required packages by executing

npm install

After the installation, you need to make some changes in public/sketch.js

Open the file in a code Editor. I will be using VS code. you can use any editor of your choice.

code public/sketch.js

You need to find this line in the file.

socket = io.connect("https://pwhiteboard.herokuapp.com/");

and replace it with

socket = io.connect("http://localhost:8080");

You can change 8080 with any local PORT you want.

Note : If you will change the PORT to anything else, then you will need to add environment variable PORT. See Changing PORT section to learn More.

Now you just need to Start the SERVER.

Starting the server

Now that you have done the installation part successfully, you can start a local server hosting the pWhiteboard.

Open Terminal in the pwhiteboard directory.

Now run

npm start

to start a local server.

That's it.

Changing PORT

You might remember that i told you that you can change 8080 with any local PORT you want.

But for that you need to follow an extra step.

Don't worry its very simple :D

Lets say you don't wanna run it on

localhost:8080

instead you want it on

localhost:3000

To do that go to the pwhiteboard directory. There you will find a .env file.

Yep that will help you in this.

Open that file and set the PORT variable to the port you want it to run on.

For Example

PORT=3000

Note: PORT must be in upper flat case

In this case it will be hosted on localhost:3000

Now save it and start your Server.

It should be hosted on the port you set in the .env file.

Found any Bug or Typo?

Feel free to Create new Issue.

Want to contribute?

Just do it. Create a better version of the project and submit it by Creating a Pull Request.

pwhiteboard's People

Contributors

weirdomind avatar

Stargazers

Jay Prakash Pathak avatar

Watchers

 avatar

Forkers

cmrktmr jobs1802

pwhiteboard's Issues

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.