Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 2.67 KB

README.md

File metadata and controls

69 lines (46 loc) · 2.67 KB

Projectcheckins

Development

To build the project you need Java 21.

If you use SDKMan! you can do:

sdk use java 21.0.2-amzn

To build the project run:

./gradlew build

To open a Test Coverage report run:

open code-coverage-report/build/reports/jacoco/testCodeCoverageReport/html/index.html 

Run the app

To run the app locally create a file called netty/src/main/resources/application-dev.properties with the following content:

eclipsestore.storage.main.root-class=org.projectcheckins.repository.eclipsestore.Data
eclipsestore.storage.main.storage-directory=build/eclipestore
micronaut.security.authentication=cookie
micronaut.security.token.jwt.signatures.secret.generator.secret=pleaseChangeThisSecretForANewOne

then run ./gradlew :netty:run

Technology Stack

Libraries

Gradle Plugins

Jacoco Gradle Plugin

Spec

Deployment

ElasticBeanstalk with EclipseStore S3 and Gmail

Configure the following environment variables:

Environment Variable Value Description
MICRONAUT_ENVIRONMENTS ec2 Micronaut environment
MICRONAUT_SERVER_PORT 5000 Elastic Beanstalk assumes that the application listens on port 5000.
ECLIPSESTORE_S3_STORAGE_DEFAULT_BUCKET_NAME S3 bucket name
EMAIL_SENDER Gmail address
GMAIL_APP_SPECIFIC_PASSWORD Gmail App specific password
MICRONAUT_SECURITY_TOKEN_JWT_SIGNATURES_SECRET_GENERATOR_SECRET Secret