{"id":30184667,"url":"https://github.com/studyresearchprojects/fastify-nextjs-project","last_synced_at":"2025-08-12T12:44:11.575Z","repository":{"id":104132981,"uuid":"336669416","full_name":"StudyResearchProjects/fastify-nextjs-project","owner":"StudyResearchProjects","description":"🐅 Project template to build a Fastify + NextJS application","archived":false,"fork":false,"pushed_at":"2021-12-29T22:59:49.000Z","size":305,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T00:42:55.730Z","etag":null,"topics":["fastify","nextjs","project","template"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StudyResearchProjects.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":"2021-02-07T00:52:49.000Z","updated_at":"2025-08-05T22:18:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8b35194-2900-480c-9ae1-88ce68c7fc41","html_url":"https://github.com/StudyResearchProjects/fastify-nextjs-project","commit_stats":null,"previous_names":["leoborai/fastify-nextjs-project","estebanborai/fastify-nextjs-project","studyresearchprojects/fastify-nextjs-project"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/StudyResearchProjects/fastify-nextjs-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Ffastify-nextjs-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Ffastify-nextjs-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Ffastify-nextjs-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Ffastify-nextjs-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StudyResearchProjects","download_url":"https://codeload.github.com/StudyResearchProjects/fastify-nextjs-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Ffastify-nextjs-project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270064276,"owners_count":24520929,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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","nextjs","project","template"],"created_at":"2025-08-12T12:43:55.587Z","updated_at":"2025-08-12T12:44:11.518Z","avatar_url":"https://github.com/StudyResearchProjects.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./docs/artwork.png\" height=\" 118\" width=\"518\" /\u003e\n  \u003ch1\u003efastify-nextjs-project\u003c/h1\u003e\n  \u003ch4 align=\"center\"\u003e🐅 Project template to build a Fastify + NextJS application\u003c/h4\u003e\n\u003c/div\u003e\n\n# Description\n\nThis is a template project to build an application using NextJS (Server Side\nReactJS framework) and Fastify (HTTP Server Framework).\n\nNextJS is configured as a _fastify plugin_, source code for NextJS (including\nconfiguration files and type definitions) live inside of the `src/client`\ndirectory.\n\nServer source code (Fastify powered), lives inside of the `src/server` directory.\n\nBy default, every route will attempt to render a page ⏤ defined under\n`src/client/pages` (read on NextJS for more details) ⏤, unless such route\nis under the `api/` route.\n\nEvery `api/` prefixed route will reach directly to Fastify's router and will be\nhandled as defined.\n\nThis behavior is configurable on the `src/server/plugin/next.ts` file.\n\n# Usage\n\n## Development\n\n\u003e You will need NodeJS v14.15.4 or greather installed to run this project.\n\n1. Install dependencies\n\n```bash\nyarn install\n```\n\nThis command will download all required dependencies for your project.\n\n2. Run the development server\n\n```bash\nyarn run dev\n```\n\nSources will be built and the project will be served on http://localhost:3000/.\n\n## Production\n\nFor production use you must build both client and server source into plain\nJavaScript.\n\nA configuration for this come OOTB with the `build:production` npm script\nwill build both client and server sources separately and prepare a directory\nwith the files\n\n1. Execute `yarn run build:production` to generate `./dist` directory\n2. Execute `node ./dist/main.js`\n\nThe following output should be printed in your terminal\n\n```log\n$ node ./dist/main.js\n\n\u003e event - compiled successfully\n```\n\n# Contributing\n\nEvery kind of contribution to this project is welcome, please, don't hesitate\nto open a Pull Request or Issue. I will be happy to help!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudyresearchprojects%2Ffastify-nextjs-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstudyresearchprojects%2Ffastify-nextjs-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudyresearchprojects%2Ffastify-nextjs-project/lists"}