This commit is contained in:
Shay
2023-03-18 16:14:33 -07:00
parent 767394582c
commit aa26d1d283
3 changed files with 178 additions and 115 deletions

View File

@@ -11,6 +11,7 @@ Below is a basic overview of the project structure:
```
├── examples -> short, feature-specific sample apps
│ ├── app.js -> finished app.js code
│ ├── button.js
│ ├── command.js
│ ├── modal.js
@@ -72,6 +73,8 @@ node app.js
> ⚙️ A package [like `nodemon`](https://github.com/remy/nodemon), which watches for local changes and restarts your app, may be helpful while locally developing.
If you aren't following the [getting started guide](https://discord.com/developers/docs/getting-started), you can move the contents of `examples/app.js` (the finished `app.js` file) to the top-level `app.js`.
### Set up interactivity
The project needs a public endpoint where Discord can send requests. To develop and test locally, you can use something like [`ngrok`](https://ngrok.com/) to tunnel HTTP traffic.