https://github.com/davidvanleeuwen/nodeschool-pixelflut
https://github.com/davidvanleeuwen/nodeschool-pixelflut
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidvanleeuwen/nodeschool-pixelflut
- Owner: davidvanleeuwen
- License: mit
- Created: 2022-07-04T14:16:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T09:47:24.000Z (over 3 years ago)
- Last Synced: 2025-02-26T16:54:55.799Z (8 months ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NodeSchool Rotterdam - pixelflut express
Used for the [NodeSchool Rotterdam meetup](https://www.meetup.com/nodeschool-rotterdam/events/285991530/)
**PRESENTATION**: [nodeschool reboot.pdf](https://github.com/davidvanleeuwen/nodeschool-pixelflut/files/9053667/nodeschool.reboot.pdf)
### Getting started
To try this out at home, please run the server by using first:
`npm install`
and then:
`npm start`
There are four requests you can do:
- `GET /1` - Getting JSON from the server
- `POST /2` - Posting your `name` which returns an `id`
- `PUT /3` - Flashing a pixel using `x`, `y,` and the `id` from the previous request
- `PUT /4` - Only accepts a `url`, which is used to retreive data from another (ExpressJS) server that returns JSON with: `x`, `y`, `color`, `id`.
### Result
https://user-images.githubusercontent.com/238946/177520911-60939956-3e59-4c83-ae46-ed754fb669ea.mp4
https://user-images.githubusercontent.com/238946/177522320-02467222-114f-4731-a04b-1b16e4318851.mov