You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Trent Larson 0d7020daf7 enable CORS for global access, and remove temp files and add logging 11 months ago
.gitignore first version, mostly made by AI 11 months ago
README.md enable CORS for global access, and remove temp files and add logging 11 months ago
package.json enable CORS for global access, and remove temp files and add logging 11 months ago
pnpm-lock.yaml enable CORS for global access, and remove temp files and add logging 11 months ago
server.js enable CORS for global access, and remove temp files and add logging 11 months ago

README.md

Image Server

setup

sh <(curl https://pkgx.sh) +pnpm sh
pnpm install
# create the directory for files that are being uploaded; should stay empty afterward
mkdir uploads

Now manually set these AWS_ variables inside a .env file:

AWS_ACCESS_KEY=
AWS_SECRET_KEY=
AWS_REGION=

dev

node server.js

test

curl -X POST -F "image=@./test.png" http://localhost:3000/image