Skip to content

trieuduongle/todo-app-hono

Repository files navigation

TODO App

Used Technology/Libraries

How this repo is initilized:

  1. npx create-turbo@latest
  2. cd apps && npm create hono@latest todo-api
  3. update the name + version of package.json in todo-api folder. Then Turbo will know that app immediately
  4. Do similar things to setup React app.
  5. At root folder, call "npm run dev", it will call "dev" task in all apps+packages folder( I think so)

Using this example

Run the following command:

npm run dev

Maybe you will receive some error at first time, so just use README file in each app to setup before call "npm run dev" once again

TODO app main page

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

  • todo-api: a Hono app
  • web: a React app
  • @repo/ui: a stub React component library shared by both web and docs applications
  • @repo/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • @repo/typescript-config: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This Turborepo has some additional tools already setup for you:

Build

To build all apps and packages, run the following command:

npm run build

Develop

To develop all apps and packages, run the following command:

npm run dev

Remote Caching

Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

cd my-turborepo
npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:

npx turbo link

Useful Links

Learn more about the power of Turborepo:

Future Works:

  • Prepare pipeline to deploy to Cloudflare/Supabase ...
  • Improve frontend to better structure when call backend
  • Make things configurable through .env or wrangler.toml ... (Will update more ...)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published