An image server that optimizes images by sharp and upload them to AWS S3. Made to serve a huge amount of requests.
Use this docker image targeek/targeek-image-server
docker pull targeek/targeek-image-server
# or
docker run -p 4000:4000 -e REDIS_URI=redis://redis-uri targeek/targeek-image-server
- Clone this repository
- Install dependencies
yarn install
-
Setup environment variables by edit
.env
,.env.development
,.env.production
. You can see the list of environment variables in thesrc/types/modules.d.ts
file. -
Run
# Run in development mode
yarn start
# Run in production mode
yarn build
yarn start:production
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub