Infrastructure link: https://github.com/RubyXiang/infrastructure
Serverless link: https://github.com/RubyXiang/serverless
Jingru Xiang
- Java 11
- Maven 3.8.6
- SpringBoot
- Postman
- Lombok Plugin
- MySql 8.0.28
- Navicat for MYSQL
- Packer
- packer init ./ami
- packer fmt ./ami
- packer validate ./ami
- export AWS_ACCESS_KEY_ID="{YOUR_AWS_ACCESS_KEY_ID}"
- export AWS_SECRET_ACCESS_KEY="{YOUR_ AWS_SECRET_ACCESS_KEY}"
- packer build ./ami/aws-ubuntu.pkr.hcl
- In terminal, use git clone + ssh to clone project
- Open project in Intellij IDEA and use Maven to reload all the properties, use Maven package to pack .jar file under /target
- Use Packer following steps above to build AMI
- Use CloudFormation to start EC2 instance
- Use SSH to connect to EC2 Instance and use port 3306 to connect with database client
- Hit the three APIs using Postman on port 8080:
- POST /v1/user
- GET /v1/user/{accountId}
- PUT /v1/user/{accountId}
- POST /v1/documents
- GET /v1/documents
- GET /v1/documents/{docId}
- DELETE /v1/documents/{docId}