https://github.com/dgamer007/microservices
https://github.com/dgamer007/microservices
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dgamer007/microservices
- Owner: DGamer007
- Created: 2023-09-16T05:01:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T05:31:16.000Z (over 1 year ago)
- Last Synced: 2023-09-16T16:57:47.999Z (over 1 year ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microservices Assignment With RabbitMQ Integration
## How to run the Application ?
- Open terminal in Project Directory
- Run `npm install` to install Project dependencies
- Setup `.env` file from `.env.sample`
- Run `npm run start:dev` to start the `GATEWAY` in development Environment
OR
- Run `npm run start` to start the `GATEWAY` service in production Environment
- #### Start Other Services [*Auth*,*User*,*Post*,*Comment*]- Open terminal in Service Directory [*apps/*<*auth* | *user* | *post* | *comment*>]
- Run `npm install` to install dependencies
- Setup `.env` file from `.env.sample`'
- Run `npm run start:dev` to start `SERVICE` in development Environment
- Services can run as a standalone Application in Development Environment only...
- Provide `MODE="RUN_AS_APP"` in .env file
- Run `npm run start` to start `SERVICE` in production Environment
- Once a service has been started, it will register itself to the Gateway with
- KEY
- VERSION
- PORT
- #### Key and Version of Service can be provided as Command Line Argument while starting the Service
- `npm run start -- `
- `npm run start -- auth v2`
- If not provided then Default Key and Version will be assigned from ENV- After Starting services, Every endpoint of each service can be accessed via Gateway, with `[gateway_url]/[service_key]/[service_version]/[path]`
## All Repository Urls
- [Gateway Github Repo](https://github.com/DGamer007/microservices)
- [Auth Service Github Repo](https://github.com/DGamer007/microservices-auth-service)
- [User Service Github Repo](https://github.com/DGamer007/microservices-user-service)
- [Post Service Github Repo](https://github.com/DGamer007/microservices-post-service)
- [Comment Service Github Repo](https://github.com/DGamer007/microservices-comment-service)