- Upload assets
- List uploaded assets
- Archive assets
- JDK 1.8
- Maven 3
- Mongo 3.6
At the project root level, run:
mvn test
At the project root level, run:
mvn clean install
-
Install mongo 3.6
-
Specify the following properties in src/main/resources/application.properties
- aws.access.key.id={AWS_ACCESS_KEY}
- aws.access.key.secret={AWS_SECRET_KEY}
- aws.s3.bucket.name={AWS_BUCKET_NAME}
- aws.region={AWS_REGION}
-
mvn spring-boot:run
OR
build:
mvn clean install
run:./target/assetmanager.jar
ORjava -jar target/assetmanager.jar
- Add AWS details in docker-compose.yml file with
- AWS_ACCESS_KEY
- AWS_SECRET_KEY
- AWS_BUCKET
- AWS_REGION
docker-compose up
- Ensure mongo service running and java 8 installed
- Copy the assetmanager.jar from target to the directory where you want to deploy
- run
java -jar -Dspring.data.mongodb.database={db_name} -Dspring.data.mongodb.host={mongo_host} -Dspring.data.momgodb.port={mongo_port} -DAWS_ACCESS_KEY={your_access_key} -DAWS_SECRET_KEY={your_secret_key} -DAWS_BUCKET={bucket_name} -DAWS_REGION={aws_region_name} assetmanager.jar >> assetmanager.log &
http://host:port/actuator/health
http://host:port/swagger-ui.html