Production: v.3.0: OCR enabled
A simple app for recording and tracking receipts. Java-based backend and API, React frontend.
This project is built on Adam Fleming's skeleton, a super simple foundation for building a scalable, RESTful HTTP server.
- Run
./gradlew distTarthis tells gradle to make a .tar file containing the java application code and all dependencies - Run
docker build -t myapp .this runs the Dockerfile, and builds an image tagged withmyapp. See all images withdocker images - Run
docker run -p 80:8080 myappthis runs themyappimage, routing port 80 on Your Machine to port 8080 in the container
- Tag your image:
docker tag myapp YOUR_DOCKERHUB_NAME/myapp - Push:
docker push YOUR_DOCKERHUB_NAME/myapp
- Run
docker imagesto find the tag for your AWS cluster. It'll be something along the lines ofYOUR_ACCOUNT_ID.dkr.ecr.YOUR_REGION.amazonaws.com/YOUR_APP_NAME - Run
gradle build. - Re-build an image tagged for your AWS cluster:
docker build -t YOUR_AWS_TAG . - Push the image:
docker push YOUR_AWS_TAG
You may need to log into AWS again. If prompted, enter aws ecr get-login --no-include-email for Docker 17.06+.