{"id":18187720,"url":"https://github.com/jonathan-foucher/hono-api-example","last_synced_at":"2026-01-29T04:53:53.137Z","repository":{"id":260824826,"uuid":"882447854","full_name":"jonathan-foucher/hono-api-example","owner":"jonathan-foucher","description":"An example of API with Hono and Bun","archived":false,"fork":false,"pushed_at":"2024-11-02T21:37:45.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T00:27:13.343Z","etag":null,"topics":["bun","hono","sequelize","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/jonathan-foucher.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-11-02T19:55:24.000Z","updated_at":"2024-11-02T21:37:48.000Z","dependencies_parsed_at":"2024-11-02T21:17:41.402Z","dependency_job_id":"c8b2aad8-a026-48e7-9edf-de4f949544c7","html_url":"https://github.com/jonathan-foucher/hono-api-example","commit_stats":null,"previous_names":["jonathan-foucher/hono-api-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-foucher%2Fhono-api-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-foucher%2Fhono-api-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-foucher%2Fhono-api-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-foucher%2Fhono-api-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathan-foucher","download_url":"https://codeload.github.com/jonathan-foucher/hono-api-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123973,"owners_count":21051567,"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":["bun","hono","sequelize","typescript"],"created_at":"2024-11-03T02:02:58.659Z","updated_at":"2026-01-29T04:53:53.086Z","avatar_url":"https://github.com/jonathan-foucher.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\nThis project is an example of Hono API with Bun, sequelize and a postgres database.\n\n## Run the project\n### Database\nInstall postgres locally or run it through docker with :\n```\ndocker run -p 5432:5432 -e POSTGRES_DB=my_database -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres\n```\n\n### Dependencies\nInstall the project dependencies\n```\nbun i\n```\n\n### Application\nOnce the postgres database is started and the dependencies installed, you can start the Hono project and try it out.\n\nStart the application\n```\nbun run dev\n```\n\nGet all the movies\n```\ncurl --location 'http://localhost:3000/api/movies'\n```\n\nSave a movie\n```\ncurl --request POST \\\n  --url http://localhost:3000/api/movies \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n\t\"id\": 26,\n\t\"title\": \"Some movie title\",\n\t\"release_date\": \"2022-02-26\"\n}'\n```\n\nDelete a movie\n```\ncurl --request DELETE \\\n  --url http://localhost:3000/api/movies/26\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathan-foucher%2Fhono-api-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathan-foucher%2Fhono-api-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathan-foucher%2Fhono-api-example/lists"}