{"id":19293759,"url":"https://github.com/yogyy/fastify-starter","last_synced_at":"2026-05-12T12:36:38.056Z","repository":{"id":220676888,"uuid":"750925175","full_name":"yogyy/fastify-starter","owner":"yogyy","description":"learning backend(js framework)","archived":false,"fork":false,"pushed_at":"2025-01-18T10:15:31.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T11:23:29.252Z","etag":null,"topics":["fastify","jwt","starter"],"latest_commit_sha":null,"homepage":"https://fastify-starter-yogyy.vercel.app","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/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-01-31T15:40:56.000Z","updated_at":"2025-01-18T10:15:32.000Z","dependencies_parsed_at":"2024-03-26T15:52:42.607Z","dependency_job_id":null,"html_url":"https://github.com/yogyy/fastify-starter","commit_stats":null,"previous_names":["yogyy/fastify-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastify-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastify-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastify-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogyy%2Ffastify-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yogyy","download_url":"https://codeload.github.com/yogyy/fastify-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240396948,"owners_count":19794760,"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":["fastify","jwt","starter"],"created_at":"2024-11-09T22:36:00.896Z","updated_at":"2026-05-12T12:36:37.999Z","avatar_url":"https://github.com/yogyy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting Started with [Fastify-CLI](https://www.npmjs.com/package/fastify-cli)\n\nThis project was bootstrapped with Fastify-CLI.\n\n## Create Table\n\n```bash\nCREATE TABLE fastify_users (\n    id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,\n    createdAt DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),\n    updatedAt DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n    email VARCHAR(191) NOT NULL UNIQUE,\n    hash VARCHAR(191) NOT NULL,\n    firstName VARCHAR(191),\n    lastName VARCHAR(191)\n);\n```\n\n#### POST /api/auth/signup\n\n```json\n{\n  \"email\": \"test@mail.to\",\n  \"password\": \"123\",\n  \"firstName\": \"tester\",\n  \"lastName\": \"?\" // optional\n}\n```\n\n#### POST /api/auth/signin\n\n```json\n{ \"email\": \"test@mail.to\", \"password\": \"123\" }\n```\n\n#### GET /api/users/details , /api/users/:id\n\n```js\n/**\n * Require Authorization in headers.\n *\n * Usage:\n * - Include 'Authorization' in headers.\n * - Use 'Bearer [token]' as the value for the Authorization header.\n * - Obtain the token after signup or signin.\n *\n * GET /api/users/details\n * - Retrieve details of the authenticated user.\n * - Authorization token must be included in headers.\n *\n * GET /api/users/:id\n * - Retrieve details of a specific user by ID.\n * - Requires user ID as a parameter in the URL.\n * - Authorization token must be included in headers.\n */\n```\n\n### Route\n\n#### basic route\n\n```js\n/**\n * GET /api\n * GET /api/ping\n * GET /api/hello\n * - { name, age } in body\n * GET /api/hello/:id\n * - { id } in params\n * /\n```\n\n## Available Scripts\n\n### `npm run dev`\n\nTo start the app in dev mode.\\\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\n### `npm start`\n\nFor production mode\n\n### `npm run test`\n\nRead [testing docs](https://node-tap.org/basics/)\n\nRun the test cases.\n\n## Learn More\n\nTo learn Fastify, check out the [Fastify documentation](https://www.fastify.io/docs/latest/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogyy%2Ffastify-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyogyy%2Ffastify-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogyy%2Ffastify-starter/lists"}