You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/user-service/README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,15 +44,23 @@
44
44
45
45
3. Enter `host.internal.docker` as the Host.
46
46
47
-
## Running User Service without Docker
47
+
## Running User Service Individually
48
48
49
49
> Make sure you have the cloud MongoDB URI in your .env file and set NODE_ENV to production already.
50
50
51
-
1.Open Command Line/Terminal and navigate into the `user-service` directory.
51
+
1.Set up and run Redis using `docker compose run --rm --name redis -p 6379:6379 redis`.
52
52
53
-
2.Run the command: `npm install`. This will install all the necessary dependencies.
53
+
2.Open Command Line/Terminal and navigate into the `user-service` directory.
54
54
55
-
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.
55
+
3. Run the command: `npm install`. This will install all the necessary dependencies.
56
+
57
+
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.
58
+
59
+
## Running User Service Individually with Docker
60
+
61
+
1. Open the command line/terminal.
62
+
63
+
2. Run the command `docker compose run user-service` to start up the user service and its dependencies.
0 commit comments