Skip to content

lino-sebastian/bona-fide-user-service

Repository files navigation

bona-fide-user-service

Hexagonal Microservice for handling the user related activities.

Build and Run

Configuring Cassandra DB

Start the cassandra docker container by docker-compose up Once the DB container is started,configure the DB with adequate keyspace and tables.

  • List the docker containers using docker ps -a
  • Identify the Cassandra container and execute docker exec -it <container_id> bash
  • Start the cql mode by typing cqlsh
  • Create the productKeyspace using command CREATE KEYSPACE productkeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }
  • Start using the keyspace for further DDL and DML operations by using command use productkeyspace
  • Create table DBUser create table DBUser(userId int,email text PRIMARY KEY,password text)

Build the application using mvn clean install

Run the application inside the module where Application class is located using mvn spring-boot:run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages