{"repo":"marcosrjjunior/hono-boilerplate","free":true,"listed":false,"github":"https://github.com/marcosrjjunior/hono-boilerplate","clone":"git clone https://github.com/marcosrjjunior/hono-boilerplate.git","description":"📝 hono boilerplate to run a typescript server using node, bun...","language":"TypeScript","stars":73,"topics":["bun","hono","kysely","nodejs","postgree","javascript","honojs","typescript","api"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"Hono Boilerplate Boilerplate for your typescript projects using Hono. Project Structure Tech Stack Requirements Run Locally Manage your database using migrations Run test FAQ Dependencies Extras Project Structure The main implementation is inside of the /app directory where it uses basic ts node implementation. Tech Stack Geral: Hono, Zod, Eslint Database: Kysely (queries, migrations, types) Test: Bun test Docs: Scalar Requirements node.js v20+ or bun nvm installed to manage node versions pnpm to manage dependencies(npm install -g pnpm) Run Locally 📁 Setup your database I recommend using dbngin to spin up an local DB on your machine. [!NOTE] If you prefer docker, you can use postgres service from this docker compose Create your database Update your environment variables Create a .env files from .env.example and populate the values. Install your dependencies Nodejs Bun Run the project Nodejs Bun From here you should be getting a server running on http://localhost:3333 Manage your database using migrations Migrations are currently defined under lib/db/migrations . An initial migration is already there as an example, adjust to meet your project requirements. Reference Run all migrations This command will perform the \"up\" function for all new migrations Rollback previous migration This command will perform the \"down\" function from previous migration Run seed Reset migrations + run seed How to write a migration To make an update on the database you will need to create a migration","default_branch":null,"files":null,"tree":[],"storefront":"/r/marcosrjjunior","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marcosrjjunior/hono-boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}