Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Instruct student to remove git repo from my-app #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions Whitelist-dApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,20 @@ npx create-next-app@latest

and press `enter` for all the questions. Choose `Javascript` instead of `Typescript` when asked.

The `create-next-app` tool also initializes a Git repo when it sets up the project. However, since our parent directory `Whitelist-Dapp` will soon become a Git repo as well (when deploying the dApp), we don't want to keep the `my-app` folder as a separate Git repo to avoid having one Git repo inside another Git repo (Git submodules). So let's remove that git repo.

Run the following command in your terminal:

```
# Linux / macOS
cd my-app
rm -rf .git

# Windows
cd my-app
rmdir /s /q .git
```

Your folder structure should look something like

```
Expand All @@ -213,10 +227,9 @@ Your folder structure should look something like
- my-app
```

Now to run the app, execute these commands in the terminal
Now to run the app, execute this command in the terminal

```
cd my-app
npm run dev
```

Expand Down