https://github.com/dylanlott/uploader
super simple node.js uploader that puts images in S3
https://github.com/dylanlott/uploader
Last synced: about 1 year ago
JSON representation
super simple node.js uploader that puts images in S3
- Host: GitHub
- URL: https://github.com/dylanlott/uploader
- Owner: dylanlott
- Created: 2019-06-08T01:08:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T18:03:01.000Z (over 3 years ago)
- Last Synced: 2025-01-30T01:29:44.541Z (over 1 year ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
UPLOADER
========
> a super simple single-file slick S3-compatible uploader.
# .env file
You need to create a `.env` in the root of your project. If you don't, the app won't start up.
It should have the following fields
```
AWS_ACCESS_KEY=youraccesskey
AWS_SECRET_KEY=yoursecretkey
BASE_ENDPOINT_URL=amazon_base_url
UPLOADER_PORT=3000
BUCKET=yourbucketname
```
The BASE_ENDPOINT_URL should be the base URL of your amazon S3 service. It's everything except for the bucket name, which is set by the BUCKET env variable.
# Docker
You can build the docker image for this by running
`docker build -t uploader ./`
If you want to run the docker image
`docker run -p : -f ./uploader`
# PM2
This repo contains a process.yml file which can be used to control how PM2 handles this process.
If you want to use PM2 to run this, you can simply run
`pm2 start index`
in the root and it should start up.