This is a Next.js project that has been bootstrapped with create-next-app
. It includes an API route and uses next/font
for automatic font optimization.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Then, open http://localhost:3000 in your browser to see the result. The page auto-updates as you edit the pages/index.tsx file.
Alternatively, you can use Docker to initialize the project. First, build the Docker image:
docker build -t front .
Then, run the Docker container:
docker run -p 3000:3000 front
This will expose the application on http://localhost:3000 as well.
This project include API routes that can be accessed at http://localhost:3000/api/hello. You can edit this endpoint in pages/api/hello.ts
. The pages/api
directory is mapped to /api/*
and any file in this directory is treated as an API routes instead of React pages.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
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.