Pre-Registration
This repository contains the source code and design documents for MOSIP Pre-Registration module.
Build
The project requires JDK 1.8.
- To build jars:
$ cd pre-registration $ mvn clean install
- To skip JUnit tests and Java Docs:
$ mvn install -DskipTests=true -Dmaven.javadoc.skip=true
- To build Docker for a service:
$ cd <service folder> $ docker build -f Dockerfile
Deploy
-
To run all services as Dockers using MiniKube run sandbox installer scripts.
-
To run a Service jar individually:
`java -Dspring.profiles.active=<profile> -Dspring.cloud.config.uri=<config-url> -Dspring.cloud.config.label=<config-label> -jar <jar-name>.jar`
Example:
profile:env
(extension used on configuration property files*)
config_label:master
(git branch of config repo*)
config-url:http://localhost:51000
(Url of the config server*)* Refer to kernel-config-server for details
-
Note that you will have to run the dependent services like kernel-config-server to run any service successfully.
-
To run a Docker image individually:
$ docker run -it -p <host-port>:<container-port> -e active_profile_env={profile} -e spring_config_label_env= {branch} -e spring_config_url_env={config_server_url} <docker-registry-IP:docker-registry-port/<dcker-image>`
Test
Automated functaionl tests available in Functional Tests repo
APIs
API documentation available on Wiki: Pre-Registration APIs
Documentation
MOSIP documentation is available on Wiki
License
This project is licensed under the terms of Mozilla Public License 2.0