From bb73e30b17b28ddfbfb5e983c97ca25d4d1b654e Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Fri, 11 Mar 2022 19:15:36 -0500 Subject: [PATCH] Revert "Add contributing to app store docs (#2113)" (#2115) This reverts commit 006645b279f6de4038279567cce1819dff772081. --- apps/docs/pages/developer/app-store.mdx | 43 ------------------------- apps/docs/pages/developer/meta.json | 3 +- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 apps/docs/pages/developer/app-store.mdx diff --git a/apps/docs/pages/developer/app-store.mdx b/apps/docs/pages/developer/app-store.mdx deleted file mode 100644 index 430b536208..0000000000 --- a/apps/docs/pages/developer/app-store.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Contributing to App Store ---- - -Since Cal.com is open source we encourage developers to create new apps for others to use. This guide is to help you get started. - -## Structure - -All apps can be found under `packages/app-store`. In this folder is `_example` which shows the general structure of an app. - -``` -_example -| index.ts -| package.json -| .env.example -| -|---api -| | example.ts -| | index.ts -| -|---lib -| | adaptor.ts -| | index.ts -| -|---static -| | icon.svg -``` - -## Getting Started - -In the `package.json` name your package appropriately and list the dependencies needed for the package. - -Next in the `.env.example` specify the environmental variables (ex. auth token, API secrets) that your app will need. In a comment add a link to instructions on how to obtain the credentials. Create a `.env` with your the filled in environmental variables. - -In `index.js` fill out the meta data that will be rendered on the app page. Under `packages/app-store/index.ts`, import your app and add it under `appStore`. Your app should now appear in the app store. - -Under the `/api` folder, this is where any API calls that are associated with your app will be handled. Since cal.com uses Next.js we use dynamic API routes. In this example if we want to hit `/api/example.ts` the route would be `{BASE_URL}/api/integrations/_example/example`. Export your endpoints in an `index.ts` file under `/api` folder and import them in your main `index.ts` file. - -The `/lib` folder is where the functions of your app live. For example, when creating a booking with a MS Teams link the function to make the call to grab the link lives in the `/lib` folder. Export your endpoints in an `index.ts` file under `/lib` folder and import them in your main `index.ts` file. - -The `/static` folder is where your assets live. - -If you need any help feel free to join us on Slack: https://cal.com/slack diff --git a/apps/docs/pages/developer/meta.json b/apps/docs/pages/developer/meta.json index 6840ef270c..961dfc5f77 100644 --- a/apps/docs/pages/developer/meta.json +++ b/apps/docs/pages/developer/meta.json @@ -4,6 +4,5 @@ "code-styling": "Code styling", "project-structure": "Project structure", "pull-requests": "Pull requests", - "adding-css": "Adding CSS", - "app-store": "Contribute to app store" + "adding-css": "Adding CSS" }