Pre-requisite : Running cassandra
Below steps are required to run user-api module
-
Download and extract Cassandra
-
start cassandra as service go to bin folder and execute command ./cassandra
- run following command to ingest schema in cassandra
inside bin folder of downloaded casandra
./cqlsh -f <kip project path/backend/common/src/main/resources/cassandra_script.cql>
-
export $USER_EMAIL=email from which you want to send mail and $USER_PASSWORD=password
-
start kip server with this command sbt "project user-api" run port for all routes is 8080
-
kip server will start on localhost:8080
Login Route
http://localhost:8080/kip/login
Create user Route
http://localhost:8080/kip/createuser
Json for creating new user
{
"emailId": "[email protected]"
}
Json for user login
{
"emailId": "[email protected]",
"password": "iql2ihrdouauv4ps9q9t57i2"
}