@@ -22,27 +22,47 @@ Welcome to the **Next.js Workshop**, designed to guide you through the basics of
22225 . [ Why Learn Next.js?] ( #why-learn-nextjs )
23236 . [ Learning Resources] ( #learning-resources )
2424
25+ ---
26+
2527## ** Setup**
2628
2729### ** Navigate to the Project Folder**
2830
29- Open your terminal and move into the workshop directory:
30- ``` bash
31- cd nextjs_assignment
32- ```
33-
34- ### ** Run the Docker Environment**
35-
36- 1 . Build the Docker container:
31+ 1 . ** Clone the Repository:**
32+ Start by cloning the repository:
3733 ``` bash
38- docker-compose build
39- ```
40- 2 . Start the container:
41- ``` bash
42- docker-compose up
34+ git clone https://github.com/sebivenlo/esd-2024-nextjs_workshop.git
4335 ```
36+
37+ 2 . ** Open the Next.js Assignment Folder:**
38+ In VS Code:
39+ - Go to ** File** > ** Open Folder** .
40+ - Select the ` nextjs_assignment ` folder from the cloned repository.
41+
42+ ---
4443
45- The app will be accessible at ` http://localhost:3000 ` .
44+ ### ** Run the Dev Container in VS Code**
45+
46+ 1 . ** Reopen in Container:**
47+ After opening the ` nextjs_assignment ` folder in VS Code, you should see a pop-up message suggesting:
48+ > * "Folder contains a Dev Container configuration. Would you like to reopen it in a container?"*
49+
50+ If the message does not appear:
51+ - Press ** Ctrl + Shift + P** (or ** Cmd + Shift + P** on Mac).
52+ - Select ** Remote-Containers: Reopen in Container** .
53+
54+ 2 . ** Let the Container Build:**
55+ - VS Code will build the container, install dependencies, and set up the environment.
56+ - This may take a few minutes during the first build.
57+
58+ 3 . ** Start the Next.js Development Server:**
59+ Once the container is ready:
60+ - Open the integrated terminal in VS Code (** Ctrl + `** ).
61+ - Run the following command:
62+ ``` bash
63+ npm run dev
64+ ```
65+ - Visit ` http://localhost:3000` in your browser to view the app.
4666
4767---
4868
0 commit comments