Skip to content
/ atidone Public template

A full-stack application with Auth, SSR and SQL, running on the edge with Nuxt.

License

Notifications You must be signed in to change notification settings

atinux/atidone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e77d19b · Mar 7, 2025
Dec 23, 2024
Jan 27, 2025
May 10, 2023
Oct 25, 2024
Aug 9, 2024
Nov 7, 2023
Oct 25, 2024
May 3, 2023
Mar 25, 2024
Nov 6, 2024
Sep 18, 2024
Apr 16, 2024
Nov 6, 2024
Mar 7, 2025
Mar 2, 2025
May 3, 2023

Repository files navigation

Manage your Todos with Atidone ☑️

A demonstration using Nuxt with server-side rendering on the edge, authentication and database querying using Cloudflare D1 with Drizzle ORM.

Deploy to NuxtHub

Features

Live demo

https://todos.nuxt.dev

nuxt-todos-edge-demo.mp4

To see an example using Passkeys (WebAuthn) for authentication, checkout todo-passkeys.

Setup

Make sure to install the dependencies using pnpm:

pnpm i

Create a GitHub Oauth Application with:

  • Homepage url: http://localhost:3000
  • Callback url: http://localhost:3000/api/auth/github

Add the variables in the .env file:

NUXT_OAUTH_GITHUB_CLIENT_ID="my-github-oauth-app-id"
NUXT_OAUTH_GITHUB_CLIENT_SECRET="my-github-oauth-app-secret"

To create sealed sessions, you also need to add NUXT_SESSION_PASSWORD in the .env with at least 32 characters:

NUXT_SESSION_PASSWORD="your-super-long-secret-for-session-encryption"

Development

Start the development server on http://localhost:3000

npm run dev

In the Nuxt DevTools, you can see your tables by clicking on the Hub Database tab:

drizzle-meets-nuxt-devtools.mp4

Deploy

You can deploy this project on your Cloudflare account for free and with zero configuration using NuxtHub.

npx nuxthub deploy

It's also possible to leverage Cloudflare Pages CI for deploying, learn more about the different options on https://hub.nuxt.com/docs/getting-started/deploy

Remote Storage

Once you deployed your project, you can connect to your remote database locally running:

pnpm dev --remote

Learn more about remote storage on https://hub.nuxt.com/docs/getting-started/remote-storage

License

MIT License