Skip to content

Commit

Permalink
Merge pull request #144 from statisticsnorway/add-make-local-api
Browse files Browse the repository at this point in the history
Add Makefile command for running Klass API locally
  • Loading branch information
mallport authored Aug 9, 2023
2 parents de159f5 + 2692d8d commit c7d7a7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ run-klass-forvaltning-local-mariadb:
pushd klass-forvaltning && \
mvn spring-boot\:run -Dspring.profiles.active=mariadb,embedded-solr,frontend,skip-indexing,small-import,ad-offline -P nexus && \
popd

# The environment variable KLASS_ENV_SECURITY_IGNORED must be set to "/**" in order to skip authentication
run-klass-api-local-mariadb:
pushd klass-api && \
mvn spring-boot\:run -Dspring.profiles.active=mariadb,embedded-solr,mock-mailserver,skip-indexing,small-import,ad-offline -P nexus && \
popd
6 changes: 5 additions & 1 deletion klass-api/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@ [email protected]
spring.jpa.properties.hibernate.ejb.interceptor=no.ssb.klass.core.util.BaseEntityInterceptor

#context path for API docs
klass.env.api.path=/api/klass
klass.env.api.path=/api/klass

# Security
# Set to '/**' to skip authorization for local testing
security.ignored=${klass.env.security.ignored}

0 comments on commit c7d7a7f

Please sign in to comment.