diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ae8ed57 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "endOfLine": "lf", + "printWidth": 150 +} \ No newline at end of file diff --git a/README.md b/README.md index ce41fd5..c9a9766 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file diff --git a/client/index.html b/client/index.html index 7c6330a..8de3d29 100644 --- a/client/index.html +++ b/client/index.html @@ -8,6 +8,6 @@
- +