This is the Credit Service for Manamon. It provides functionalities to manage user credit balances and transaction histories.
- Clone the repository:
git clone <repository-url> - Navigate to the project directory:
cd credit - Install the dependencies:
npm install
To start the application, run:
npm start
The application will be available at http://localhost:8080.
-
GET /credit/{userId}
Retrieve the credit balance for a specific user. -
POST /credit/update
Update the credit balance after a transaction (purchase, match winnings, sale). -
GET /credit/{userId}/transactions
Retrieve the complete transaction history for a user.
- TypeScript
- Express
- MongoDB
- RabbitMQ for message bus statistics
This project is licensed under the MIT License.