Skip to content

Commit 5900652

Browse files
committed
Add instructions to run redis
1 parent 1acd663 commit 5900652

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
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_URI
32+
REDIS_URI=redis://redis:6379 # Uncomment if you're running the user service with docker
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: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,19 @@
4444

4545
## Running User Service without Docker
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

0 commit comments

Comments
 (0)