{"id":26885025,"url":"https://github.com/scottlepp/gen","last_synced_at":"2025-03-31T18:40:30.829Z","repository":{"id":284992932,"uuid":"956626970","full_name":"scottlepp/gen","owner":"scottlepp","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-28T19:50:42.000Z","size":2984,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T20:24:32.890Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottlepp.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":"2025-03-28T15:19:20.000Z","updated_at":"2025-03-28T19:50:46.000Z","dependencies_parsed_at":"2025-03-28T20:34:43.378Z","dependency_job_id":null,"html_url":"https://github.com/scottlepp/gen","commit_stats":null,"previous_names":["scottlepp/gen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottlepp%2Fgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottlepp","download_url":"https://codeload.github.com/scottlepp/gen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246519651,"owners_count":20790795,"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-03-31T18:40:30.089Z","updated_at":"2025-03-31T18:40:30.813Z","avatar_url":"https://github.com/scottlepp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exercise Content Generator\n\nThis project uses Google's Gemini AI to generate exercise-related content and images, storing them in a PostgreSQL database.\n\n## Prerequisites\n\n- Node.js (v14 or higher)\n- PostgreSQL database\n- Google Gemini API key\n\n## Setup\n\n1. Install dependencies:\n```bash\nnpm install\n```\n\n2. Configure environment variables:\n   - Copy `.env.example` to `.env`\n   - Fill in your database credentials and Google API key\n\n3. Create the database table:\n```sql\nCREATE TABLE posts (\n    id integer DEFAULT nextval('posts_id_seq'::regclass) NOT NULL,\n    title character varying(255) NOT NULL,\n    content text NOT NULL,\n    image_url character varying(255),\n    created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP,\n    author character varying(100) DEFAULT 'Anonymous'::character varying,\n    user_id text DEFAULT 'TBD'::text NOT NULL\n);\n```\n\n## Usage\n\nTo generate content for a specific exercise:\n\n```typescript\nimport { generateAndSaveExercise } from './src/exerciseGenerator';\n\n// Generate content for squats\nawait generateAndSaveExercise('Squats');\n```\n\n## Building\n\nTo compile TypeScript to JavaScript:\n\n```bash\nnpm run build\n```\n\n## Running\n\nTo run the compiled JavaScript:\n\n```bash\nnpm start\n```\n\n## Note\n\nThis project uses Google's Gemini AI for content generation. The image generation part is currently a placeholder - you'll need to implement actual image generation and storage based on your requirements. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottlepp%2Fgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottlepp%2Fgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottlepp%2Fgen/lists"}