xeust / base-nextjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js application that implements To Dos. It uses Deta Base for persistent To Dos.

Getting Started

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.

Interacting with Deta Base

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.

Deploy To Dos on Vercel

Deploy with Vercel

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.

About


Languages

Language:JavaScript 58.3%Language:CSS 41.7%