{"id":20585813,"url":"https://github.com/vinejs/vinejs-example-fastify","last_synced_at":"2025-04-14T21:10:47.874Z","repository":{"id":182941173,"uuid":"654472086","full_name":"vinejs/vinejs-example-fastify","owner":"vinejs","description":"An example application using VineJS to validate the Fastify request body along with functional tests.","archived":false,"fork":false,"pushed_at":"2023-12-13T14:29:21.000Z","size":469,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T09:21:16.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vinejs.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}},"created_at":"2023-06-16T07:50:08.000Z","updated_at":"2024-11-02T06:52:43.000Z","dependencies_parsed_at":"2023-12-13T15:36:56.235Z","dependency_job_id":"71be3022-66df-48cb-ae58-24798240cd2b","html_url":"https://github.com/vinejs/vinejs-example-fastify","commit_stats":null,"previous_names":["vinejs/vinejs-example-fastify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinejs%2Fvinejs-example-fastify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinejs%2Fvinejs-example-fastify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinejs%2Fvinejs-example-fastify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinejs%2Fvinejs-example-fastify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinejs","download_url":"https://codeload.github.com/vinejs/vinejs-example-fastify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961237,"owners_count":21189993,"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":[],"created_at":"2024-11-16T07:09:26.691Z","updated_at":"2025-04-14T21:10:47.852Z","avatar_url":"https://github.com/vinejs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VineJS ❤️ Fastify\n\u003e An example application using VineJS to validate the Fastify request body along with functional tests.\n\n![](./vine_fastify_banner.png)\n\n## What's in the box?\n\n- ESM application 😍\n- TypeScript setup with TS Node and SWC.\n- A basic fastify application\n- VineJS for validating request body\n- Japa for writing HTTP requests ( real requests are sent to the server ).\n\n## What is VineJS?\nVineJS is a highly performant library to validate the HTTP request body in your backend applications. It is type-safe and has a vast collection of validation rules and schema types.\n\nYou can learn more about it on the [official documentation website](https://vinejs.dev/docs/introduction).\n\n## Setup\n- Clone this repo directly using Git or using `npx degit vinejs/vinejs-example-fastify`.\n- Run `npm install` to install dependencies.\n- Start the development server using the `npm run dev` script.\n- Run tests using the `npm test` script.\n\n## Code organization\n- The functional code is kept inside the `./src/` directory. It includes routes and validators.\n- The fastify application is created inside the `app.ts` file. The same instance is used for testing and running the server.\n- The `server.ts` file starts the server.\n- The `bin/test.ts` file is used to run the tests. We use the Japa setup hooks to start the server before running any tests.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinejs%2Fvinejs-example-fastify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinejs%2Fvinejs-example-fastify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinejs%2Fvinejs-example-fastify/lists"}