- Docker
(docker-engine >=v19.x) - Express
>= v4.x - React
>= v16.x - Redux
>= v4.x - Loadable-components
>= v5.x - Webpack
>= v4.x - Babel
>= v7.x - SASS
- Multer
- aws-sdk
- react-dropzone
- react-easy-crop
Before proceeding futher install following prerequisite dependencies to start:
Node.js version >= v10.x
Steps to follow
-
Clone image-cropper
-
Change the current directory to
image-cropper
cd image-cropper
-
Run the install
npm ci -
Create a new file
.envand Copy .env.example into .env -
To start the server run:
npm run dev
or for Production
npm run build && npm run serve
open http://localhost:3000 in browser.
- To upload images to S3 bucket, set the following Environment Variables in the .env file
STORE_IMG_IN_S3=false // Boolean (default: false)
// If set true then the following Environment Variables are needed.
S3_BUCKET_NAME=
S3_ACCESS_KEY_ID=
S3_SECRET_KEY=
S3_BUCKET_REGION=
