This is a Next.js project bootstrapped with create-next-app
.
You should be able to run or develop the app in Docker by simply running:
docker-compose up --build
# or if you prefer it be quiet
docker-compose up -d --build
and when you want to stop
docker-compose stop
# or simply (if container is not running quietly)
CTRL/CMD + C
NOTE: For hot reload, you need to run docker from a linux environment (including WSL) so you have to clone the repo into your linux environment
First, run the development server:
npm install
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.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
To learn more about Next.js, take a look at the following resources:
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.