{"id":26396188,"url":"https://github.com/imphnen/imphnen-backend-service","last_synced_at":"2025-08-21T19:02:29.569Z","repository":{"id":276334119,"uuid":"904615579","full_name":"IMPHNEN/imphnen-backend-service","owner":"IMPHNEN","description":"IMPHNEN CMS Backend","archived":false,"fork":false,"pushed_at":"2025-03-14T10:50:44.000Z","size":239,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-03-14T11:33:20.098Z","etag":null,"topics":["axum","cms","postgresql","rest-api","rust","seaorm"],"latest_commit_sha":null,"homepage":"https://api.imphnen.dev/v1/docs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IMPHNEN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-17T08:30:56.000Z","updated_at":"2025-03-14T10:50:48.000Z","dependencies_parsed_at":"2025-02-07T16:30:23.498Z","dependency_job_id":"132941b0-18c5-4779-9e5d-44dbfe173ba5","html_url":"https://github.com/IMPHNEN/imphnen-backend-service","commit_stats":null,"previous_names":["imphnen/imphnen-cms-be","imphnen/imphnen-backend-service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMPHNEN%2Fimphnen-backend-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMPHNEN%2Fimphnen-backend-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMPHNEN%2Fimphnen-backend-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMPHNEN%2Fimphnen-backend-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IMPHNEN","download_url":"https://codeload.github.com/IMPHNEN/imphnen-backend-service/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244024318,"owners_count":20385400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["axum","cms","postgresql","rest-api","rust","seaorm"],"created_at":"2025-03-17T11:27:57.050Z","updated_at":"2025-08-21T19:02:29.535Z","avatar_url":"https://github.com/IMPHNEN.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IMPHNEN Backend Service\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/logo.svg\" alt=\"IMPHNEN\"\u003e\n\u003c/p\u003e\n\nThis repository serves as the **monorepo** for all backend services of IMPHNEN. It encompasses several main services:\n\n1. **IMPHNEN-Backend** - Provides fundamental functionalities and shared resources for other services.\n2. **IMPHNEN-IAM** - Handles identity and access management across IMPHNEN applications.\n3. **IMPHNEN-CMS** - Supports the cms services by IMPHNEN [Landing Page website](https://imphnen.dev/).\n4. **IMPHNEN-Gacha** - Supports the gacha services by IMPHNEN [Gacha website](https://gacha.imphnen.dev/).\n5. **IMPHNEN-Dimentorin** - Supports the mentoring services by IMPHNEN [Dimentorin website](https://dimentorin.imphnen.dev/).\n6. **IMPHNEN-Gateway** - Acts as the API gateway, routing requests to appropriate services.\n7. **IMPHNEN-Middleware** - Acts as the middleware for the API Gateway, providing authentication and authorization.\n\n## How to Install\n\n1. **Clone the repository**:\n\n   ```sh\n   git clone https://github.com/IMPHNEN/imphnen-backend-service.git\n   cd imphnen-backend-service\n   ```\n\n2. **Set up the environment**:\n\n   - Copy the example environment files:\n\n     ```sh\n     cp .env.example .env\n     ```\n\n     if you use windows based system\n\n     ```sh\n     ./apply-env.ps1\n     ```\n\n     if you use unix based system\n\n     ```sh\n     source ./apply-env.sh\n     ```\n\n   - Modify the `.env` files with your specific configuration settings.\n\n3. **Install dependencies**:\n\n   Ensure you have [Rust](https://www.rust-lang.org/) installed. Then, run:\n\n   ```sh\n   cargo fetch\n   ```\n\n4. **Run the seeders**:\n\n   to run the seeders, run:\n\n   ```sh\n   cargo run --bin seeder\n   ```\n\n## How to Run\n\n### Development\n\nTo run the services in development mode:\n\n1. **Start the database and other dependencies** using Docker Compose:\n\n   ```sh\n   docker-compose up -d\n   ```\n\n2. **Run using cargo run**. For example, to run the Core Service:\n\n   ```sh\n   cargo run --bin api\n   ```\n\n3. **Run using cargo watch**. For example, to run the Core Service:\n\n   ```sh\n   cargo watch -x \"run --bin api\"\n   ```\n\n### Production\n\nFor production deployment:\n\n1. **Build the Docker image**:\n\n   ```sh\n   docker build -t imphnen-backend .\n   ```\n\n2. **Run the Docker container**:\n\n   ```sh\n   docker run --name imphnen-backend -d --env-file .env -p 3000:3000 imphnen-backend\n   ```\n\n   Adjust the port and environment variables as needed.\n\n## How to Run the Tests\n\n1. **Run the tests**:\n\n   ```sh\n   cargo test -p tests\n   ```\n\n## How to Contribute\n\n1. **Fork the repository** and clone it locally.\n2. **Create a new branch** for your feature or fix:\n\n   ```sh\n   git checkout -b feat/your-feature-name\n   ```\n\n3. **Make your changes**, commit them, and push to your forked repository.\n4. **Create a pull request** to the `develop` branch of this repository.\n\nIf you encounter any issues or have questions, feel free to create a new issue in the repository.\n\n---\n\n_Note: For detailed API documentation, please refer to our [API Docs](https://api.imphnen.dev/docs)._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimphnen%2Fimphnen-backend-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimphnen%2Fimphnen-backend-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimphnen%2Fimphnen-backend-service/lists"}