https://github.com/fr0stbyter/squig
https://github.com/fr0stbyter/squig
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fr0stbyter/squig
- Owner: Fr0stbyteR
- Created: 2019-05-01T17:27:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:44:50.000Z (over 3 years ago)
- Last Synced: 2025-10-06T03:30:00.210Z (8 months ago)
- Language: TypeScript
- Size: 13.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Squig
The project is an interactive local-network canvas. There are three parts (role) in this network.
1. Server (`server.js` using NodeJS)
2. Client (`index.html` in web-browser)
3. Admin (`admin.html` in web-browser)
To run the project, you need to start the server firstly. Make sure you have [NodeJS](https://nodejs.org/) installed.
Open Terminal, use `cd` command to switch path to project folder, then execute
```
npm install --only=prod
cd dist
node server.js
```
Now a web page server is running and listening to port 1080,
a websocket communication server is running and listening to port 2112
You need to figure out the IP address of the server in your local-network.
Assuming the IP address is 192.168.1.10, then
the client's page should be `http://192.168.1.10:1080`,
the admin's page should be `http://192.168.1.10:1080/admin.html`.
Now you can draw stuffs in your canvas, admins can delete them using the panel at right.



## Build
To rebuild the project, run
```
npm install
npm run build
```