{"id":27168227,"url":"https://github.com/michaelpiper/istrategy","last_synced_at":"2025-04-09T05:29:39.485Z","repository":{"id":201134605,"uuid":"707039166","full_name":"michaelpiper/istrategy","owner":"michaelpiper","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-19T05:36:15.000Z","size":917,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-16T14:11:50.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/michaelpiper.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}},"created_at":"2023-10-19T05:27:20.000Z","updated_at":"2023-10-19T05:30:06.000Z","dependencies_parsed_at":"2024-05-01T16:20:07.337Z","dependency_job_id":null,"html_url":"https://github.com/michaelpiper/istrategy","commit_stats":null,"previous_names":["michaelpiper/istrategy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpiper%2Fistrategy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpiper%2Fistrategy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpiper%2Fistrategy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpiper%2Fistrategy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelpiper","download_url":"https://codeload.github.com/michaelpiper/istrategy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247985846,"owners_count":21028770,"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":[],"created_at":"2025-04-09T05:29:38.888Z","updated_at":"2025-04-09T05:29:39.480Z","avatar_url":"https://github.com/michaelpiper.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### requirement:\n1. Node 18 // node -v\n2. Yarn //yarn -v\n3. Redis  // redis-cli\n4. Mysql server //mysql -u root -p\n\nonce you meet the requirement we are good to go\n\n### Installation Steps:\n\n1. **Install Dependencies:**\n   ```\n   yarn install\n   ```\n\n2. **Build the Application:**\n   ```\n   yarn build\n   ```\n\n3. **Create `.env` File:**\n   - Create a file named `.env` in the root folder.\n   - Add the following content as an example:\n   ```env\n   NODE_ENV=development\n   DATABASE_URL=\"mysql://root:password@localhost:3306/1ubank?schema=public\"\n   REDIS_URI=\"redis://127.0.0.1:6379\"\n\n   # SERVER CONFIG\n   PORT=8080\n   HOSTNAME=0.0.0.0\n   PLATFORM_AUDIENCE=1\n   PLATFORM_PUBLIC_KEY=123123\n   APP_KEYS='secret key,secret key you used'\n   ADMIN_USER_ROOT_EMAIL=test@example.com\n   ADMIN_AUTH_PASS=test@example.com\n   ADMIN_AUTH_USER=test@example.com\n   ```\n\n4. **Run Database Migrations:**\n   ```\n   yarn migrate\n   ```\n\n5. **Seed the Database:**\n   ```\n   yarn seed\n   ```\n6. **Run Test:** \n    ```\n    yarn test\n    ```\n7. **Start the Application in Development Mode:**\n   ```\n   yarn dev\n   ```\n\nThese steps cover setting up the necessary dependencies, configuring environment variables, and preparing the database for your application, it starts the application in development mode.\n\nMake sure to replace placeholders like `password`, `test@example.com`, etc., with actual values relevant to your application.\n\nNOTE:\nYou can login to the dashboard with your username and password, test@example.com and test@example.com respectively\n\n{{BASE_URL}}/admin\n![image admin](admin.png)\n\n```sql\nselect article_id as article_no ,currency_name as article,provider_name as provider, article.provider_id as provider_no, price from article left join currency on article.currency_id = currency.currency_id left join provider on article.provider_id = provider.provider_id;\n```\n```\n\n+------------+-------------+--------------+-------------+-------+\n| article_no | article     |  provider_no |    provider | price |\n+------------+-------------+--------------+-------------+-------+\n|          1 | EU \"Pounds\" |            3 | Flutterwave |  1000 |\n+------------+-------------+--------------+-------------+-------+\n```\n![image drawSQL](drawSQL.png)\n\n[Find Answer Here](ANSWER.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelpiper%2Fistrategy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelpiper%2Fistrategy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelpiper%2Fistrategy/lists"}