Skip to content

Commit 04ca41b

Browse files
committed
Remove AI and MongoDb
1 parent 0a18787 commit 04ca41b

16 files changed

+25
-936
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
This project follows a microservices architecture with the following services:
66
1. **Frontend** - Port `3000`
77
2. **User Service** - Port `3001`
8-
3. **Question Service** - Port `3002`
8+
3. **Question Service** - Port `3002`
99
4. **Matching Service** - Port `3003`
1010
5. **Collaboration Service** - Port `3004`
1111
6. **MongoDB** - Port `27017` (Database)
1212
7. **Nginx API Gateway** - Port `80`
1313
8. **Redis** - Port `6379`
1414
9. **Zookeeper** - Port `2181`
1515
10. **Kafka** - Port `9092`, Port `29092`
16+
11. **Chat Service** (Located in addon/chat)
1617

1718
### Setting up the Project
1819
Copy and paste the .env.example files in each service. Rename them as .env files.
@@ -23,6 +24,7 @@ Files to do this in:
2324
4. /backend/question-service
2425
5. /backend/matching-service
2526
6. /backend/collaboration-service
27+
2628
Then, run `node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"` twice to generate
2729
your 2 JWT token secrets. For the first one, paste it into the JWT_ACCESS_TOKEN_SECRET variable of
2830
the .env files in question-service and user-service. Then, copy the second into the
@@ -31,10 +33,15 @@ JWT_REFRESH_TOKEN_SECRET of the .env file in user-service.
3133
Further note: The DB_CLOUD_URI .env variable in user-service doesn't need to be filled in. A local
3234
database will be created in the mongoDB service.
3335

34-
Consult the readme files in the service if there are further configurations needed.
36+
Consult the readme files in each service if there are further configurations needed.
37+
3538
### Running the Project
3639

37-
To run all services, execute the following command in the root directory:
40+
To run the main services, execute the following command in the root directory:
41+
42+
`docker-compose up --build`
43+
44+
To run the chat service, navigate to the addon/chat directory and run:
3845

3946
`docker-compose up --build`
4047

@@ -49,8 +56,9 @@ Once the containers are up:
4956
- Redis: [http://localhost:6379](http://localhost:6379)
5057
- Zookeeper: [http://localhost:2181](http://localhost:2181)
5158
- Kafka: [http://localhost:9092](http://localhost:9092)
59+
- Chat Service: Available through the main application
5260

53-
Note that even after docker says that everything is up and running, there is a risk that they aren't when you load the frontend. Wait for the frontend logs to show up in the docker logs.
61+
Note that even after docker says that everything is up and running, there is a risk that they aren't when you load the frontend. Wait for the frontend logs to show up in the docker logs.
5462
In this event, wait for about a minute before trying again. If that still doesn't work and there are network errors, try
5563
rebuilding the services by running `docker-compose up --build` again.
5664

@@ -64,4 +72,4 @@ rebuilding the services by running `docker-compose up --build` again.
6472

6573
### Nginx API Gateway
6674

67-
- Nginx runs on port `80` and acts as the API gateway for routing requests to the respective services.
75+
- Nginx runs on port `80` and acts as the API gateway for routing requests to the respective services.
262 KB
Binary file not shown.
533 KB
Binary file not shown.

addon/chat/Chatio/Controllers/AssistantController.cs

Lines changed: 0 additions & 47 deletions
This file was deleted.

addon/chat/Chatio/Controllers/ProductController.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

addon/chat/Chatio/Controllers/VectorSearchController.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

addon/chat/Chatio/Data/MongoDbContext.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

addon/chat/Chatio/Data/MongoDbSeeder.cs

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)