This is a microservices-based backend application for a digital wallet. The application is split into three services, each responsible for specific functionalities:
- Users Service: Handles user-related operations.
- Payments Service: Manages payments and transaction functionalities.
- Notifications Service: Notifies users about transaction outcomes.
Each service has its own database, adhering to the microservices architecture standard.
- Config: Contains the DB configuration file.
- Models: Defines the database schema.
- Controllers: Holds endpoint functions.
- Routes: Sets up the service-specific routes.
- app.js: Initializes the Notifications service server.
-I used the userName as the unique identifier -used the Mongoose library
To run all services as separate processes, follow these steps:
-
Navigate to the root of the project.
-
Run the following command in the terminal:
node index.js