-
Notifications
You must be signed in to change notification settings - Fork 1
Session Management
Session Management micro-service tracks all user activities which can be used to monitor errors and user-activity trends.
- JAVA 8
- Zookeeper
- Kafka
- JAVA_HOME environment variable needs to be set to the JAVA installation directory. Refer: https://www.java.com/en/download/
Go to /sessionmanagement folder in the repository.
-
Zookeeper should be running before starting the Session Management micro-service.
To install and configure Zookeeper and Kafka refer: https://www.c-sharpcorner.com/article/step-by-step-installation-and-configuration-guide-of-apache-kafka-on-windows-ope/ -
Create a secret key using the following steps.
a. In python prompt run following commands.
import os
os.urandom(24)
b. Copy the sub-string between quotes and set it in the environment variable with the name SECRET_KEY.
example,
b'asd78ihji&&(hjkhKjh((jkj#$%}{}jkljhjkhjg7uhuj'
Copy bold part of the generated output.
mvn clean install
mvn spring-boot:run
Note: The Session Management micro-service will run on port 8084