This repository contains source code for backend service of Inji Mobile and Inji Web. The modules exposes API endpoints.
The project requires JDK 21, postgres, redis and google client credentials
- Install pgadmin, redis and update application-local.properties file with values
spring.datasource.username= spring.datasource.password= spring.redis.password=
- Refer to the How to create Google Client Credentials section to create
Google client credentials and update below properties in
application-local.properties
.spring.security.oauth2.client.registration.google.client-id= spring.security.oauth2.client.registration.google.client-secret=
- Run the SQLs using /deploy.sh script. from db_scripts folder
./deploy.sh deploy.properties
- Build the jar
mvn clean install -Dgpg.skip=true -Dmaven.javadoc.skip=true -DskipTests=true
- Run following command
mvn spring-boot:run -Dspring.profiles.active=local
- To simplify running mimoto in local for developers we have added Docker Compose Setup. This docker-compose includes mimoto service and nginx service to server static data.
- Follow the below steps to use custom build image in docker-compose
- Build the mimoto.jar
mvn clean install -Dgpg.skip=true -Dmaven.javadoc.skip=true -DskipTests=true
- Build docker image, use any image tag
docker build -t <image-with-tag> .
- Use newly built docker image in docker-compose file
Credits listed here