This is a Next.js application that implements To Dos. It uses Deta Base for persistent To Dos.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
A valid Deta Project key is required to interact with the database. You need to set an environment variable DETA_PROJECT_KEY
which will be read the pages/api/todos/index.js
and pages/api/todos/[tid].js
files.
In production, these can be set in the Vercel web app.
Do not commit this project key into a git repo.
For the click to deploys, simply add the DETA_PROJECT_KEY
as an environment variable during the deploy flow.
This app can be easily deployed on Vercel.