Skip to content

Commit

Permalink
Issue #SB-24965 feat: Updating Local Setup details (Sunbird-Knowlg#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayaprakash8887 authored Mar 29, 2022
1 parent d4c6b2e commit 92e5e0c
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Repository for Knowledge Platform - 2.0

## Content-Service local setup
## Knowledge-platform local setup
This readme file contains the instruction to set up and run the content-service in local machine.
### Prerequisites:
* Neo4j
Expand Down Expand Up @@ -140,7 +140,8 @@ Example:
kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic test_topic
```

### Running content-service:
### Running Content Service:
### (Content V3+V4 APIs & Collection V4 APIs & Assets V4 APIs & Channel V3 APIs & License V3 APIs & Event V4 APIs & EventSet V4 APIs)
1. Go to the path: /knowledge-platform and run the below maven command to build the application.
```shell
mvn clean install -DskipTests
Expand All @@ -149,7 +150,35 @@ mvn clean install -DskipTests
```shell
mvn play2:run
```
3. Using the below command we can verify whether the databases(neoj,redis & cassandra) connection is established or not. If all connections are good, health is shown as 'true' otherwise it will be 'false'.
3. Using the below command we can verify whether the databases(neo4j,redis & cassandra) connection is established or not. If all connections are good, health is shown as 'true' otherwise it will be 'false'.
```shell
curl http://localhost:9000/health
```

### Running Assets/Composite Search Service:
1. Go to the path: /knowledge-platform and run the below maven command to build the application.
```shell
mvn clean install -DskipTests
```
2. Go to the path: /knowledge-platform/search-api/search-service and run the below maven command to run the netty server.
```shell
mvn play2:run
```
3. Using the below command we can verify whether the databases(neo4j,redis & cassandra) connection is established or not. If all connections are good, health is shown as 'true' otherwise it will be 'false'.
```shell
curl http://localhost:9000/health
```

### Running Object Category Service:
1. Go to the path: /knowledge-platform and run the below maven command to build the application.
```shell
mvn clean install -DskipTests
```
2. Go to the path: /knowledge-platform/taxonomy-api/taxonomy-service and run the below maven command to run the netty server.
```shell
mvn play2:run
```
3. Using the below command we can verify whether the databases(neo4j,redis & cassandra) connection is established or not. If all connections are good, health is shown as 'true' otherwise it will be 'false'.
```shell
curl http://localhost:9000/health
```

0 comments on commit 92e5e0c

Please sign in to comment.