|
1 year ago | |
---|---|---|
sql | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
package.json | 1 year ago | |
pnpm-lock.yaml | 1 year ago | |
server.js | 1 year 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
pnpm run migrate
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