Skip to content

Commit 35cf780

Browse files
authored
Merge pull request #73 from nicolelim02/feat/users
Add instructions to run redis
2 parents a2f9baa + 9b72107 commit 35cf780

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

backend/user-service/.env.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ USER=EMAIL_ADDRESS
2929
PASS=PASSWORD
3030

3131
# Redis configuration
32-
REDIS_URI=redis://redis:6379
32+
REDIS_URI=redis://redis:6379 # Uncomment if you're running the user service using docker compose
33+
# REDIS_URI=redis://localhost:6379 # Uncomment if you're running the user service individually without docker
3334

3435
# Test
3536
MONGO_URI_TEST=mongodb://mongo:mongo@test-mongo:27017/

backend/user-service/README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,21 @@
4242

4343
3. Enter `host.internal.docker` as the Host.
4444

45-
## Running User Service without Docker
45+
## Running User Service Individually
4646

47-
1. Open Command Line/Terminal and navigate into the `user-service` directory.
47+
1. Set up and run Redis using `docker compose run --rm --name redis -p 6379:6379 redis`.
4848

49-
2. Run the command: `npm install`. This will install all the necessary dependencies.
49+
2. Open Command Line/Terminal and navigate into the `user-service` directory.
5050

51-
3. Run the command `npm start` to start the User Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
51+
3. Run the command: `npm install`. This will install all the necessary dependencies.
52+
53+
4. Run the command `npm start` to start the User Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
54+
55+
## Running User Service Individually with Docker
56+
57+
1. Open the command line/terminal.
58+
59+
2. Run the command `docker compose run user-service` to start up the user service and its dependencies.
5260

5361
## After running
5462

frontend/src/pages/CollabSandbox/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ const CollabSandbox: React.FC = () => {
3535
return (
3636
<AppMargin classname={`${classes.fullheight} ${classes.center}`}>
3737
<Stack spacing={2} alignItems={"center"}>
38-
<Typography variant="h1">Collaborative Sandbox</Typography>
39-
<Typography variant="h3">Coming soon...</Typography>
38+
<Typography variant="h1">Successfully matched!</Typography>
4039
<Button variant="outlined" color="error" onClick={() => stopMatch()}>
4140
End Session
4241
</Button>

0 commit comments

Comments
 (0)