Before you begin, ensure you have met the following requirements:
- Spring Boot v3.1.5
- Java v17
- Cassandra v4.0.7
- Elasticsearch v7.10.2
- Docker Desktop v24.0.6
Follow these steps to set up and run the project:
-
Spring Boot:
Ensure you have Spring Boot v3.1.5 installed. You can download it from spring.io.
-
Java:
Install Java Development Kit (JDK) version 17. You can download it from Oracle or use OpenJDK.
java -version
-
Cassandra:
Run the following line to run Cassandra on docker :
docker run -p 9042:9042 --rm --name cassandra -d cassandra:4.0.7
Run the following line to open an interactive shell to interact with the Cassandra database using the Cassandra Query Language (CQL):
docker exec -it cassandra bash -c cqlsh -u cassandra -p cassandra
Run the following command to create the KEYSPACE for the project:
CREATE KEYSPACE IF NOT EXISTS spring_cassandra WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1};
-
ElasticSearch:
Run the following command to run ElasticSearch on docker:
docker run --network=profile_matcher --name=elasticsearch-container -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.10.2
Send requests via Postman collection attached profile_matcher.postman_collection.json.