{"id":22863543,"url":"https://github.com/bouanani-soufiane/codex-framework","last_synced_at":"2026-01-21T07:25:31.034Z","repository":{"id":252301109,"uuid":"828358552","full_name":"bouanani-soufiane/Codex-Framework","owner":"bouanani-soufiane","description":"Codex: A lightweight Java framework with dependency injection, custom ORM, data mapping, and automated database table creation.","archived":false,"fork":false,"pushed_at":"2024-08-13T16:38:42.000Z","size":195,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T11:56:28.947Z","etag":null,"topics":["dependency-injection","java","orm-framework"],"latest_commit_sha":null,"homepage":"","language":"Java","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/bouanani-soufiane.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-07-13T22:30:41.000Z","updated_at":"2025-04-14T01:46:44.000Z","dependencies_parsed_at":"2025-02-06T13:44:46.888Z","dependency_job_id":null,"html_url":"https://github.com/bouanani-soufiane/Codex-Framework","commit_stats":null,"previous_names":["bouanani-soufiane/codex-framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bouanani-soufiane/Codex-Framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouanani-soufiane%2FCodex-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouanani-soufiane%2FCodex-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouanani-soufiane%2FCodex-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouanani-soufiane%2FCodex-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouanani-soufiane","download_url":"https://codeload.github.com/bouanani-soufiane/Codex-Framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouanani-soufiane%2FCodex-Framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["dependency-injection","java","orm-framework"],"created_at":"2024-12-13T11:16:24.047Z","updated_at":"2026-01-21T07:25:31.017Z","avatar_url":"https://github.com/bouanani-soufiane.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex Framework\n\n## Overview\n\nThe Codex Framework is a comprehensive Java framework designed to streamline application development by offering robust dependency injection, custom ORM, data mapping, and automated database schema generation. It integrates annotation-based configuration to simplify entity management and dependency handling.\n\n## Features\n\n- **Dependency Injection**: Streamline object creation and dependency management.\n- **Custom ORM**: Simplify database interactions with an intuitive ORM.\n- **Data Mapping**: Effortlessly map database tables to Java objects.\n- **Automated Table Creation**: Automatically generate database tables from your Java classes.\n- **Annotation-Based Configuration**: Configure your entities and dependencies using annotations for cleaner and more maintainable code.\n\n## Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone git@github.com:bouanani-soufiane/Codex-Framework.git\n    ```\n\n2. Navigate to the project directory:\n\n    ```bash\n    cd Codex-Framework\n    ```\n\n3. Install the framework to your local Maven repository:\n\n    ```bash\n    mvn clean install\n    ```\n\n4. Add the following dependency to your project's `pom.xml`:\n\n    ```xml\n   \u003cdependency\u003e\n       \u003cgroupId\u003ecom.codex\u003c/groupId\u003e\n       \u003cartifactId\u003eCodex\u003c/artifactId\u003e\n       \u003cversion\u003e1.0-SNAPSHOT\u003c/version\u003e\n   \u003c/dependency\u003e\n    ```\n5. Add .env file with your custom database config\n   ```env\n      DB_URL=jdbc:postgresql://localhost:5432/yourDataBaseName\n      DB_USERNAME=\n      DB_PASSWORD=\n      DB_DRIVER=org.postgresql.Driver\n   ```\n\n\n\n## Usage\n\n### Main Application\n\nCreate a main class and use the `Kernel.run()` method to start your application:\n\n```java\nimport com.codex.framework.Kernel;\n\npublic class Main {\n\n    public static void main(String[] args) throws Exception {\n        Kernel.run(Main.class);\n    }\n}\n```\n\n### Dependency Injection\n\nUse annotations to define and inject dependencies:\n\n```java\npackage com.codex.testing.Components;\n\nimport com.codex.framework.DIContainer.annotations.Autowired;\nimport com.codex.framework.DIContainer.annotations.Component;\nimport com.codex.framework.DIContainer.annotations.Qualifier;\nimport com.codex.testing.Components.interfaces.IBook;\nimport com.codex.testing.Components.interfaces.IUser;\n\n@Component\npublic class Book implements IBook {\n    private IUser user;\n\n    @Autowired\n    @Qualifier(User2.class)\n    public Book(IUser user) {\n        this.user = user;\n    }\n\n    @Override\n    public void index() {\n        System.out.println(user.getName());\n    }\n}\n```\n\n### Entity Creation\n\nDefine entities using annotations:\n\n```java\npackage com.codex.testing.entities;\n\nimport com.codex.framework.EntityManager.Annotations.Column.Column;\nimport com.codex.framework.EntityManager.Annotations.Entity.Entity;\nimport com.codex.framework.EntityManager.Annotations.Entity.Table;\nimport com.codex.framework.EntityManager.Annotations.Id.ID;\nimport com.codex.framework.EntityManager.Annotations.Relationship.*;\n\nimport java.util.Set;\n\n@Entity\n@Table(name = \"Administrator\")\npublic class Admin {\n    @ID\n    private String id;\n    \n    @Column\n    private String name;\n    \n    @ManyToOne(cascade = \"PERSIST\")\n    private Employee employee_id;\n\n    @ManyToMany(cascade = \"REFRESH\")\n    @JoinTable(\n            name = \"admin_roles\",\n            joinColumns = @JoinColumn(name = \"admin_id\"),\n            inverseJoinColumns = @JoinColumn(name = \"role_id\")\n    )\n    private Set\u003cRoles\u003e roles;\n}\n\npackage com.codex.testing.entities;\n\nimport com.codex.framework.EntityManager.Annotations.Column.Column;\nimport com.codex.framework.EntityManager.Annotations.Entity.Entity;\nimport com.codex.framework.EntityManager.Annotations.Id.ID;\n\n@Entity\npublic class Employee {\n    @ID\n    private int id;\n    \n    @Column(name = \"em_name\")\n    private String name;\n}\n\npackage com.codex.testing.entities;\n\nimport com.codex.framework.EntityManager.Annotations.Column.Column;\nimport com.codex.framework.EntityManager.Annotations.Entity.Entity;\nimport com.codex.framework.EntityManager.Annotations.Id.ID;\n\n@Entity\npublic class Roles {\n    @ID\n    private String id;\n\n    @Column\n    private String name;\n}\n```\n\n## Structure\n\n| Entity Manager Process                     | IOC Context                            |\n|--------------------------------------------|----------------------------------------|\n| ![entityManager process](./images/image.webp) | ![](./images/59jj5b8mfj1c44672i4a.png) |\n\n\n## Contributing\n\n- Fork the repository and create a new branch.\n- Write clear and concise commit messages.\n- Ensure all tests pass before submitting a pull request.\n- Follow the project's coding standards and guidelines.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouanani-soufiane%2Fcodex-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouanani-soufiane%2Fcodex-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouanani-soufiane%2Fcodex-framework/lists"}