https://github.com/up9cloud/ssvm-nodejs-compress-service
I hope I could get a free Raspberry Pi!!! ☺️
https://github.com/up9cloud/ssvm-nodejs-compress-service
Last synced: 2 months ago
JSON representation
I hope I could get a free Raspberry Pi!!! ☺️
- Host: GitHub
- URL: https://github.com/up9cloud/ssvm-nodejs-compress-service
- Owner: up9cloud
- Created: 2020-08-31T10:35:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T00:23:31.000Z (almost 6 years ago)
- Last Synced: 2025-03-22T21:20:00.021Z (about 1 year ago)
- Language: Rust
- Homepage: https://www.secondstate.io/articles/raspberry-pi-for-free-20200709/
- Size: 1010 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssvm-nodejs-compress-service
Can I [Get a Free Raspberry Pi Kit](https://www.secondstate.io/articles/raspberry-pi-for-free-20200709/)?
## Usage
```bash
# up service
docker run --name 7z -d -p 3000:3000 sstc/ssvm-nodejs-compress-service
# upload a file and download the compressed file
curl localhost:3000 -F 'file=@README.md' -o README.md.7z
```
## Dev
### Up service
> create container
```bash
./up.sh 3001
# or from other image
docker build -f docker/Dockerfile.debug_base -t ssvm-builder .
./up.sh 3001 ssvm-builder
```
> build and run
```bash
ssvmup build
node node/app.js
```
### Test
```bash
curl localhost:3001 -F 'file=@README.md' -o README.md.7z
stat README.md.7z
```