This template provides an example for setting up a development environment for Next.js applications using Dev Containers. To set up the container, please follow the instructions below:
Ensure that you have the following installed on your machine:
- VS Code
- Docker Desktop
- Dev Containers extension for VS Code
-
Create a New Repository:
- Navigate to the original repository page on GitHub.
- Click on
Use this templateto create a new repository based on this template.
-
Clone the Project:
- Clone the newly created repository to your local machine.
- Open the cloned project in VS Code.
-
Reopen in Container:
- Open the Command Palette in VS Code.
- Select
Dev Containers: Reopen in Container. VS Code will then start building the container and open the project inside it.
-
Start the Dev Server:
- Once the container is running, open the terminal in VS Code.
- Run the command
npm run devto start the dev server. - Access your application by navigating to http://localhost:3000 in your local web browser.