{"id":19293702,"url":"https://github.com/yogyy/fastky","last_synced_at":"2026-04-16T04:02:17.865Z","repository":{"id":231141915,"uuid":"780429139","full_name":"yogyy/fastky","owner":"yogyy","description":"fastify + kysely","archived":false,"fork":false,"pushed_at":"2024-07-09T12:32:16.000Z","size":205,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T08:54:31.558Z","etag":null,"topics":["fastify","jwt-authentication","kysely","postgresql","typescript","vitest"],"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/yogyy.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":"2024-04-01T13:15:44.000Z","updated_at":"2024-12-31T12:46:50.000Z","dependencies_parsed_at":"2024-04-02T17:33:09.337Z","dependency_job_id":"01ec9a0e-abad-435a-a9c2-da5ae166f314","html_url":"https://github.com/yogyy/fastky","commit_stats":null,"previous_names":["yogyy/fastky"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yogyy/fastky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yogyy","download_url":"https://codeload.github.com/yogyy/fastky/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["fastify","jwt-authentication","kysely","postgresql","typescript","vitest"],"created_at":"2024-11-09T22:35:51.755Z","updated_at":"2026-04-16T04:02:17.817Z","avatar_url":"https://github.com/yogyy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fastify + Kysely\n\nThis project combines Fastify with Kysely for building a web application with a PostgreSQL database backend.\n\n## Getting Started\n\n### Prerequisites\n\nBefore starting the project, ensure you have the following installed on your machine:\n\n- Node.js\n- PostgreSQL\n\n### Setup\n\n#### 1. Clone the Repository\n\n```sh\ngit clone \u003chttps://github.com/yogyy/fastky.git\u003e\n```\n\n#### 2. Install Dependencies\n\n```sh\ncd fasky\nnpm install\n```\n\n#### 3. Create Database Table\n\nExecute the following SQL commands to create the necessary table in your PostgreSQL database:\n\n```sql\nCREATE TABLE ky_user (\n    id SERIAL PRIMARY KEY,\n    email VARCHAR(255) UNIQUE NOT NULL,\n    password VARCHAR(255) NOT NULL,\n    username VARCHAR(255) UNIQUE NOT NULL,\n    name VARCHAR(255) NOT NULL,\n    role \"UserType\" NOT NULL DEFAULT 'user'::\"UserType\",\n    is_active BOOLEAN NOT NULL DEFAULT FALSE,\n    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n    updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP\n);\n\nALTER TABLE ky_user ADD COLUMN uuid UUID DEFAULT gen_random_uuid();\n\nCREATE OR REPLACE FUNCTION trigger_set_updated_at()\nRETURNS TRIGGER AS $$\nBEGIN\n  NEW.updated_at = NOW();\n  RETURN NEW;\nEND;\n$$ LANGUAGE plpgsql;\n\nCREATE TRIGGER set_updated_at\nBEFORE UPDATE ON ky_user\nFOR EACH ROW\nEXECUTE PROCEDURE trigger_set_updated_at();\n```\n\n#### 4. Create .env File\n\nCopy the sample .env file and update it with your database connection details:\n\n```sh\ncp .env.sample .env\n```\n\n#### 5. Generate Database Types\n\nRun the following command to generate TypeScript types for your database:\n\n```sh\nnpm run db:type\n```\n\n#### 6. Run Tests\n\nExecute the following command to run the tests:\n\n```sh\nnpm run test\n```\n\nNow you're ready to start developing your Fastify + Kysely project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogyy%2Ffastky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyogyy%2Ffastky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogyy%2Ffastky/lists"}