This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or if use yarn
yarn devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Check out our Next.js deployment documentation for more details.
docker build -t example-todo-nextjs .
# Run container
docker run -p 3000:3000 example-todo-nextjsNote in Dockerfile the build is expected to have standalone modules, which is
defined in next.config.js file.
/** @type {import('next').NextConfig} */
module.exports = {
output: "standalone",
};Prettier is used to format the source code:
npx prettier . --check
npx prettier . --writeTo 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!