{"id":15002447,"url":"https://github.com/7irelo/loretta-asp-api","last_synced_at":"2026-01-28T04:48:27.818Z","repository":{"id":248871230,"uuid":"828370306","full_name":"7irelo/loretta-asp-api","owner":"7irelo","description":"Online Banking Application API (ASP.NET Core, SQL Server, Redis)","archived":false,"fork":false,"pushed_at":"2024-08-17T16:30:26.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T08:50:27.810Z","etag":null,"topics":["asp-net-core","redis","sql-server","swagger"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7irelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-13T23:51:38.000Z","updated_at":"2024-09-01T07:52:08.000Z","dependencies_parsed_at":"2025-02-15T04:32:50.629Z","dependency_job_id":"c1c56ebe-1fdc-41f5-b636-d24135f611f1","html_url":"https://github.com/7irelo/loretta-asp-api","commit_stats":null,"previous_names":["7irelo/loretta-asp-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7irelo/loretta-asp-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7irelo%2Floretta-asp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7irelo%2Floretta-asp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7irelo%2Floretta-asp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7irelo%2Floretta-asp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7irelo","download_url":"https://codeload.github.com/7irelo/loretta-asp-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7irelo%2Floretta-asp-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28838803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T02:10:51.810Z","status":"ssl_error","status_checked_at":"2026-01-28T02:10:50.806Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","redis","sql-server","swagger"],"created_at":"2024-09-24T18:50:19.089Z","updated_at":"2026-01-28T04:48:27.813Z","avatar_url":"https://github.com/7irelo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loretta Bank API\n\n![loretta_home](https://github.com/user-attachments/assets/020920f9-7df1-4090-93e4-cff8b341ab46)\n![loretta_transfer](https://github.com/user-attachments/assets/817f8b9f-13e4-499b-9ffe-33f44329045b)\n![loretta_login](https://github.com/user-attachments/assets/8cc80f60-74c2-4a40-a863-2490ceb3a5a0)\n![loretta_load](https://github.com/user-attachments/assets/dfd0bd1a-761e-4c9f-a6c0-5451cbf64428)\n\nWelcome to Loretta Bank, an online banking application built with ASP.NET Core and PostgreSQL. Loretta Bank offers a secure, user-friendly platform for managing your banking needs online.\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n- [Folder Structure](#folder-structure)\n\n## Features\n\n- User Authentication (Sign Up, Log In, Log Out)\n- Account Management (Create, View, Update, Delete Accounts)\n- Fund Transfers (Internal and External)\n- Transaction History\n- Balance Inquiries\n- Responsive Design\n\n## Tech Stack\n\n- **Backend**: ASP.NET Core\n- **Database**: PostgreSQL\n- **Authentication**: JWT (JSON Web Tokens)\n- **Styling**: CSS, Bootstrap\n\n## Installation\n\n### Prerequisites\n\n- .NET 6.0 SDK or later\n- PostgreSQL\n- Docker and Docker Compose (optional)\n\n### Steps\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/7irelo/loretta-asp-api.git\n    cd loretta-asp-api\n    ```\n\n2. Set up PostgreSQL:\n\n    ```bash\n    psql -U postgres -c \"CREATE DATABASE loretta_bank;\"\n    psql -U postgres -c \"CREATE USER loretta_user WITH PASSWORD 'password';\"\n    psql -U postgres -c \"GRANT ALL PRIVILEGES ON DATABASE loretta_bank TO loretta_user;\"\n    ```\n\n3. Update the `appsettings.json` file with your database connection string:\n\n    ```json\n    {\n      \"ConnectionStrings\": {\n        \"DefaultConnection\": \"Host=localhost;Database=loretta_bank;Username=loretta_user;Password=password\"\n      },\n      \"Jwt\": {\n        \"Key\": \"your_jwt_secret_key\",\n        \"Issuer\": \"loretta_bank\",\n        \"Audience\": \"loretta_bank_users\",\n        \"ExpiresInMinutes\": 60\n      }\n    }\n    ```\n\n4. Run the application:\n\n    ```bash\n    dotnet build\n    dotnet run\n    ```\n\n### Docker Setup (Optional)\n\n1. Build and start the containers:\n\n    ```bash\n    docker-compose up --build\n    ```\n\n2. The application will be accessible at `http://localhost:5000`.\n\n## Usage\n\n- Access the API via `http://localhost:5000/api/`\n- Use tools like Postman or Curl to interact with the endpoints.\n- Authenticate using the `/auth/login` endpoint to obtain a JWT token, which should be included in the `Authorization` header for subsequent requests.\n\n## API Endpoints\n\n### Authentication\n\n- `POST /api/auth/register` - Register a new user\n- `POST /api/auth/login` - Log in a user\n- `GET /api/auth/me` - Fetch logged in user\n- `PUT /api/auth/logout` - Log out a user\n\n### Accounts\n\n- `GET /api/accounts` - Get all accounts for the authenticated user\n- `POST /api/accounts` - Create a new account\n- `GET /api/accounts/{id}` - Get a specific account\n- `PUT /api/accounts/{id}` - Update a specific account\n- `DELETE /api/accounts/{id}` - Delete a specific account\n\n### Transactions\n\n- `GET /api/transactions` - Get all transactions for the authenticated user\n- `POST /api/transactions` - Create a new transaction\n- `GET /api/transactions/{id}` - Get a specific transaction\n- `PUT /api/transactions/{id}` - Update a specific transaction\n- `DELETE /api/transactions/{id}` - Delete a specific transaction\n\n### Cards\n\n- `GET /api/cards` - Get all cards for the authenticated user\n- `POST /api/cards` - Create a new card\n- `GET /api/cards/{id}` - Get a specific card\n- `PUT /api/cards/{id}` - Update a specific card\n- `DELETE /api/cards/{id}` - Delete a specific card\n\n### Loans\n\n- `GET /api/loans` - Get all loans for the authenticated user\n- `POST /api/loans` - Create a new loan\n- `GET /api/loans/{id}` - Get a specific loan\n- `PUT /api/loans/{id}` - Update a specific loan\n- `DELETE /api/loans/{id}` - Delete a specific loan\n\n### Customer Support\n\n- `GET /api/support` - Get all support tickets for the authenticated user\n- `POST /api/support` - Create a new support ticket\n- `GET /api/support/{id}` - Get a specific support ticket\n- `PUT /api/support/{id}` - Update a specific support ticket\n- `DELETE /api/support/{id}` - Delete a specific support ticket\n\n## Contributing\n\nContributions are welcome! Please follow these steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature-name`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/your-feature-name`).\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any inquiries or issues, please contact us at [support@lorettabank.com](mailto:support@lorettabank.com).\n\n## Folder Structure\n\n```\nloretta-bank-api/\n├── LorettaBank.Api/          # ASP.NET Core API project\n│   ├── Controllers/          # API Controllers\n│   ├── Models/               # Data models\n│   ├── Services/             # Business logic\n│   ├── Data/                 # Database context and migrations\n│   ├── appsettings.json      # Configuration settings\n│   └── Startup.cs            # Application startup configuration\n├── LorettaBank.Tests/        # Unit and integration tests\n├── docker-compose.yml        # Docker Compose configuration\n└── README.md\n```\n\n---\n\nThis README should now be suitable for an ASP.NET Core backend project for the Loretta Bank application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7irelo%2Floretta-asp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7irelo%2Floretta-asp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7irelo%2Floretta-asp-api/lists"}