{"id":25476573,"url":"https://github.com/brutalbeard/my-koa-app","last_synced_at":"2025-11-06T00:30:34.329Z","repository":{"id":277199846,"uuid":"931648245","full_name":"Brutalbeard/my-koa-app","owner":"Brutalbeard","description":"This was made entirely by talking GitHub Copilot Agent through the build","archived":false,"fork":false,"pushed_at":"2025-02-12T16:48:17.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T17:46:48.339Z","etag":null,"topics":["copilot","copilot-agent"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Brutalbeard.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":"2025-02-12T16:20:24.000Z","updated_at":"2025-02-12T16:48:15.000Z","dependencies_parsed_at":"2025-02-12T17:46:50.790Z","dependency_job_id":"6ba8ed2c-f37f-4071-94c8-4d09212069c0","html_url":"https://github.com/Brutalbeard/my-koa-app","commit_stats":null,"previous_names":["brutalbeard/my-koa-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brutalbeard%2Fmy-koa-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brutalbeard%2Fmy-koa-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brutalbeard%2Fmy-koa-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brutalbeard%2Fmy-koa-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Brutalbeard","download_url":"https://codeload.github.com/Brutalbeard/my-koa-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475929,"owners_count":19645041,"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":["copilot","copilot-agent"],"created_at":"2025-02-18T12:57:47.675Z","updated_at":"2025-11-06T00:30:34.274Z","avatar_url":"https://github.com/Brutalbeard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Koa App\n\nThis project is a Koa.js application that implements a daily plan management system using Sequelize for database interactions. It also includes endpoints for managing daily plans, daily habits, weekly plans, monthly plans, and various assessments.\n\n## Project Structure\n\n```\nmy-koa-app\n├── src\n│   ├── app.ts                  # Entry point of the application\n│   ├── controllers             # Contains controllers for handling requests\n│   │   ├── dailyPlanController.ts         # Controller for daily plan CRUD operations\n│   │   ├── dailyHabitController.ts        # Controller for daily habit CRUD operations\n│   │   ├── weeklyPlanController.ts        # Controller for weekly plan CRUD operations\n│   │   ├── monthlyPlanController.ts       # Controller for monthly plan CRUD operations\n│   │   ├── dailyAssessmentController.ts   # Controller for daily assessment endpoints\n│   │   ├── weeklyAssessmentController.ts  # Controller for weekly assessment endpoints\n│   │   └── monthlyAssessmentController.ts # Controller for monthly assessment endpoints\n│   ├── models                  # Contains Sequelize models\n│   │   ├── daily-plan-model.ts\n│   │   ├── daily-habit-model.ts\n│   │   ├── weekly-plan-model.ts\n│   │   ├── monthly-plan-model.ts\n│   │   ├── daily-assessment-model.ts\n│   │   ├── weekly-assessment-model.ts\n│   │   └── monthly-assessment-model.ts\n│   ├── routes                  # Contains route definitions\n│   │   ├── dailyPlanRoutes.ts\n│   │   ├── dailyHabitRoutes.ts\n│   │   ├── weeklyPlanRoutes.ts\n│   │   ├── monthlyPlanRoutes.ts\n│   │   ├── dailyAssessmentRoutes.ts\n│   │   ├── weeklyAssessmentRoutes.ts\n│   │   └── monthlyAssessmentRoutes.ts\n│   └── utils                   # Utility functions and configurations\n│       └── sequelize.ts         # Sequelize instance and database connection\n├── package.json                # NPM dependencies and scripts\n├── tsconfig.json               # TypeScript configuration\n└── README.md                   # Project documentation\n```\n\n## Features\n\n- **CRUD Operations**: Create, Read, Update, and Delete operations for:\n  - Daily Plans\n  - Daily Habits\n  - Weekly Plans\n  - Monthly Plans\n  - Daily Assessments\n  - Weekly Assessments\n  - Monthly Assessments\n- **Sequelize ORM**: Interacts with the database using Sequelize.\n- **Koa.js Framework**: Lightweight and modular web framework for Node.js.\n\n## Installation\n\n1. Clone the repository:\n   ```\n   git clone \u003crepository-url\u003e\n   ```\n2. Navigate to the project directory:\n   ```\n   cd my-koa-app\n   ```\n3. Install dependencies:\n   ```\n   npm install\n   ```\n\n## Usage\n\n1. Start the application:\n   ```\n   npm run start\n   ```\n2. The application will be running on `http://localhost:3000`.\n\n## API Endpoints\n\n### Daily Plan Endpoints\n- **POST /daily-plan**: Create a new daily plan.\n- **GET /daily-plan**: Retrieve all daily plans.\n- **GET /daily-plan/:id**: Retrieve a daily plan by ID\n- **PUT /daily-plan/:id**: Update a daily plan by ID.\n- **DELETE /daily-plan/:id**: Delete a daily plan by ID.\n\n### Daily Habit Endpoints\n- **POST /daily-habits**: Create a new daily habit.\n- **GET /daily-habits**: Retrieve all daily habits.\n- **GET /daily-habits/:id**: Retrieve a daily habit by ID.\n- **PUT /daily-habits/:id**: Update a daily habit by ID.\n- **DELETE /daily-habits/:id**: Delete a daily habit by ID.\n\n### Weekly Plan Endpoints\n- **POST /weekly-plans**: Create a new weekly plan.\n- **GET /weekly-plans**: Retrieve all weekly plans (supports pagination).\n- **GET /weekly-plans/:id**: Retrieve a weekly plan by ID.\n- **PUT /weekly-plans/:id**: Update a weekly plan by ID.\n- **DELETE /weekly-plans/:id**: Delete a weekly plan by ID.\n\n### Monthly Plan Endpoints\n- **POST /monthly-plans**: Create a new monthly plan.\n- **GET /monthly-plans**: Retrieve all monthly plans (supports pagination).\n- **GET /monthly-plans/:id**: Retrieve a monthly plan by ID.\n- **PUT /monthly-plans/:id**: Update a monthly plan by ID.\n- **DELETE /monthly-plans/:id**: Delete a monthly plan by ID.\n\n### Daily Assessment Endpoints\n- **POST /daily-assessments**: Create a new daily assessment.\n- **GET /daily-assessments**: Retrieve all daily assessments (supports pagination).\n- **GET /daily-assessments/:id**: Retrieve a daily assessment by ID.\n- **PUT /daily-assessments/:id**: Update a daily assessment by ID.\n- **DELETE /daily-assessments/:id**: Delete a daily assessment by ID.\n\n### Weekly Assessment Endpoints\n- **POST /weekly-assessments**: Create a new weekly assessment.\n- **GET /weekly-assessments**: Retrieve all weekly assessments (supports pagination).\n- **GET /weekly-assessments/:id**: Retrieve a weekly assessment by ID.\n- **PUT /weekly-assessments/:id**: Update a weekly assessment by ID.\n- **DELETE /weekly-assessments/:id**: Delete a weekly assessment by ID.\n\n### Monthly Assessment Endpoints\n- **POST /monthly-assessments**: Create a new monthly assessment.\n- **GET /monthly-assessments**: Retrieve all monthly assessments (supports pagination).\n- **GET /monthly-assessments/:id**: Retrieve a monthly assessment by ID.\n- **PUT /monthly-assessments/:id**: Update a monthly assessment by ID.\n- **DELETE /monthly-assessments/:id**: Delete a monthly assessment by ID.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrutalbeard%2Fmy-koa-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrutalbeard%2Fmy-koa-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrutalbeard%2Fmy-koa-app/lists"}