Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"endOfLine": "lf",
"printWidth": 150
}
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,26 @@ This template is used in the [Building An Activity](https://discord.com/develope

Read more about building Discord Activities with the Embedded App SDK at [https://discord.com/developers/docs/activities/overview](https://discord.com/developers/docs/activities/overview).

## How to run
+ 1. Install server dependencies and start server
```sh
cd server/
npm i
node server
```


+ 2. Install client dependencies and start serving client files
```sh
cd client
npm i
npm run dev
```

or

**Use CloudFlare Pages to build your app**

+ you will need to expose client port to the internet by using cloudflare tunnel or ngrok
+ config app on the developer portal
+ enjoy
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/main.js"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
115 changes: 0 additions & 115 deletions client/main.js

This file was deleted.

Loading