Create a todo app with Next.js using Codehooks.io NoSQL database backend API.
This is a Next.js project created by using the create-next-app utility.
First create a Codehooks.io backend CRUD project, follow the quick start guide.
Then add your Codehooks project URL and API token in the .env.local file. Get your project domain and API token from the project dashboard or with the CLI command coho info
An example .env.local file is shown below:
SERVER_URL=https://mystical-dolphin-4167.codehooks.io/todo
API_TOKEN=a3ec4989-2yda-2hhe-a66c-cb743bd8a665Now, run the local next.js development server:
npm run devOpen http://localhost:3000 with your browser to see the result similar to the example screenshot shown below.
You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
