{"id":16201222,"url":"https://github.com/mjunaidca/caxai","last_synced_at":"2025-03-19T05:31:04.382Z","repository":{"id":215856061,"uuid":"739018439","full_name":"mjunaidca/caxai","owner":"mjunaidca","description":"CaX: Applied GenAI Multi User Todo GPT App - Implementation of Microservices GenUI Architecture. ","archived":false,"fork":false,"pushed_at":"2024-03-30T23:13:50.000Z","size":2568,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"feat/architect-microservices","last_synced_at":"2025-02-28T16:11:01.106Z","etag":null,"topics":["api","architect","custom-gpt","custom-gpts","fastapi","fastapi-auth","fastapi-nextjs","fastapi-oa","fastapi-sqlalchemy","fastapi-vercel","genai","genai-poc","gpt-ai","nextjs14","oauth2","python-vercel","todo-dashboard","todoapp"],"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/mjunaidca.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}},"created_at":"2024-01-04T15:29:10.000Z","updated_at":"2024-07-25T16:39:21.000Z","dependencies_parsed_at":"2024-01-14T06:58:32.571Z","dependency_job_id":"38b75e55-d0b5-4667-bfdc-d2ab17e803a3","html_url":"https://github.com/mjunaidca/caxai","commit_stats":null,"previous_names":["mjunaidca/cal-ai","mjunaidca/caxgpt","mjunaidca/caxai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fcaxai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fcaxai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fcaxai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjunaidca%2Fcaxai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjunaidca","download_url":"https://codeload.github.com/mjunaidca/caxai/tar.gz/refs/heads/feat/architect-microservices","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971180,"owners_count":20376784,"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":["api","architect","custom-gpt","custom-gpts","fastapi","fastapi-auth","fastapi-nextjs","fastapi-oa","fastapi-sqlalchemy","fastapi-vercel","genai","genai-poc","gpt-ai","nextjs14","oauth2","python-vercel","todo-dashboard","todoapp"],"created_at":"2024-10-10T09:36:31.270Z","updated_at":"2025-03-19T05:31:03.478Z","avatar_url":"https://github.com/mjunaidca.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CaX: Applied GenAI Multi User Todo GPT App\n\nImplementation of Microservices GenUI Architecture. The Current Microservices are:\n\n- auth-server: Auth Server to manage Authentication \u0026 Authorization\n- todo-server: Simple ToDo Server to authenticate using auth-server \u0026 perform TODOs Crud.\n- nextjs-client: Conversational UI \u0026 TODOs Manager platform for you.\n\n# Running Locally \u0026 Development:\n\nYou can setup \u0026 run the project locally on your machine or on docker. Firstly let'e setup the env vars.\n\n- In auth-server\n` Rename .env.example to .env and add DB_URL, TEST_DB_URL, SECRET_KEY `\n\n- In todo-server add DB_URL \u0026 TEST_DB_URL. They can be same as above or different\n\n- For nextjs-client run pnpm install - no need to update them\n\n### 1. Local Machine\n\nOpen root dir i.e: cax in terminal and run \n\n1. Terminal 1: `make auth` \u0026 visit `http://localhost:8080/api/docs`\n2. Terminal 2: `make todo` \u0026 visit `http://localhost:8000/api/docs`\n3. Terminal 3: `make next` \u0026 visit `http://localhost:3000`\n\n\n### 2. Docker\n\nRename root .env.example to .env and add the missing env vars (DB_URL=, TEST_DB_URL=, SECRET_KEY=)\n\nRun: `docker compose -d up`\n\n# Deployment:\n\nWe will be deploying FastAPI Microservices to Google Cloud Run and NextJS CUI to Vercel.\n\n0. Ensure your have gcloud and vercel cli installed \u0026 authenticated\n\n1. auth-server\n\n```\ncd auth-server\n\ngcloud run deploy auth-server --source . --port 8080 --env-vars-file .env.gcp.yaml --allow-unauthenticated --region us-central1 --min-instances 1\n```\n\n2. todo-server\n```\ncd todo-server\n\ngcloud run deploy todo-micro-server --source . --port 8000 --env-vars-file .env.gcp.yaml --allow-unauthenticated --region us-central1 --min-instances 1\n```\n\n3. nextjs-client\n\n```\ncd nextjs-client\n\nvercel link\n```\n\nThen visit vercel and add all env vars to your project and in terminal run:\n\n`vercel --prod`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjunaidca%2Fcaxai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjunaidca%2Fcaxai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjunaidca%2Fcaxai/lists"}