# Trading Journal Admin Control System

## Overview
The Trading Journal Admin Control System is a comprehensive web application designed for managing trading activities, user accounts, subscriptions, and support tickets. This system provides an admin overview, user management capabilities, a billing engine, trade data management, notifications, and a support ticketing system.

## Features
- **Admin Overview**: Access to key metrics such as total users, revenue tracking, trade volume, API sync health, and error logs.
- **User Management**: View and manage user accounts, filter users by various criteria, and perform actions like suspending users and upgrading plans.
- **Subscription and Billing Engine**: Manage subscription plans, pricing tiers, coupons, and billing actions such as refunds and renewals.
- **Trade Data Management**: View trades, filter by broker or asset, and manage trade data actions like fixing imports and deleting entries.
- **Notifications and Alerts System**: Manage email triggers, in-app alerts, and push notifications.
- **Support and Ticketing System**: Manage user tickets and complaint categories.
- **General Settings**: Manage application settings to customize the user experience.

## Project Structure
```
trading-journal-admin
├── src
│   ├── app.ts
│   ├── controllers
│   ├── routes
│   ├── services
│   ├── models
│   ├── middleware
│   └── types
├── prisma
│   └── schema.prisma
├── package.json
├── tsconfig.json
├── .env.example
└── README.md
```

## Installation
1. Clone the repository:
   ```
   git clone https://github.com/Udonuwebtech/Max-Project1.git
   ```
2. Navigate to the project directory:
   ```
   cd Max-Project1/trading-journal-admin
   ```
3. Install dependencies:
   ```
   npm install
   ```
4. Set up your environment variables by copying `.env.example` to `.env` and updating the values accordingly.

## Usage
To start the application, run:
```
npm start
```
The application will be available at `http://localhost:3000`.

## Contributing
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.

## License
This project is licensed under the MIT License. See the LICENSE file for details.