{"id":50324995,"url":"https://github.com/pathcosmos/toy02_tms","last_synced_at":"2026-05-29T05:04:28.402Z","repository":{"id":294348189,"uuid":"986699568","full_name":"pathcosmos/toy02_tms","owner":"pathcosmos","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-20T02:27:56.000Z","size":0,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T02:27:58.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pathcosmos.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,"zenodo":null}},"created_at":"2025-05-20T02:14:02.000Z","updated_at":"2025-05-20T02:21:52.000Z","dependencies_parsed_at":"2025-05-20T02:46:34.280Z","dependency_job_id":null,"html_url":"https://github.com/pathcosmos/toy02_tms","commit_stats":null,"previous_names":["pathcosmos/toy02_tms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pathcosmos/toy02_tms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pathcosmos%2Ftoy02_tms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pathcosmos%2Ftoy02_tms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pathcosmos%2Ftoy02_tms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pathcosmos%2Ftoy02_tms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pathcosmos","download_url":"https://codeload.github.com/pathcosmos/toy02_tms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pathcosmos%2Ftoy02_tms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33637486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-05-29T05:04:15.434Z","updated_at":"2026-05-29T05:04:28.382Z","avatar_url":"https://github.com/pathcosmos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toy02_tms\n\nThis repository contains a simple setup with a Node.js backend and a React frontend. Both are placed in separate folders:\n\n- **backend/**: A basic Express server.\n- **frontend/**: A minimal React application configured with webpack and Babel.\n\nEach folder contains its own `package.json` with the required dependencies and scripts.\n\n## Backend database configuration\n\nThe backend expects a MariaDB database. Environment variables are loaded from\nan `.env` file. Copy `backend/.env.example` to `backend/.env` and fill in the\nvalues. The password is stored in encrypted form. To generate the required\nvariables run:\n\n```bash\nnode encryptPassword.js \"yourPassword\"\n```\n\nThis will output `ENCRYPTION_KEY`, `IV` and `DB_PASSWORD_ENC` which you should\nplace in `backend/.env` along with the database host and user values.\n\nWhen the server starts it will attempt to connect to the database and log the\nresult.\n\n## OAuth table setup\n\nAfter configuring the database connection, the OAuth tables will be created automatically when the backend starts. You can also create them manually by running:\n\n```bash\nnode src/db/createOAuthTables.js\n```\n\nThis script reads `backend/src/db/oauth_tables.sql` and ensures the `oauth_users` and `oauth_tokens` tables exist. The same logic runs during server startup so the tables are present without an extra step.\n\n## OAuth login\n\nThe backend exposes Google OAuth endpoints under `/auth`. Configure\n`GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET` in `backend/.env`. Start the\nfrontend and click **OAuth 로그인** to begin the login flow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpathcosmos%2Ftoy02_tms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpathcosmos%2Ftoy02_tms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpathcosmos%2Ftoy02_tms/lists"}