-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hporutiu readme updates to node.js stickies CSV app (#183)
* adding example csv file, env sample, readme template * Update README.md add demo video, and update the folder structure with sample csv data * add line about installing app process is same * update contributing guide to mention the app examples template sections * adding readme template to base app examples folder * add a copy and paste app manifest yaml for the template * update the template with correct link to folder structure example --------- Co-authored-by: Horea Porutiu <[email protected]>
- Loading branch information
1 parent
21fc015
commit c912756
Showing
5 changed files
with
207 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Miro Example App | ||
|
||
<b>Use this template to contribute to Miro's App Examples!</b> | ||
|
||
This app shows how to use a certain Miro SDK or API functionality to accomplish a certain task. | ||
|
||
# π¨π»βπ» App Demo | ||
|
||
<b>Insert app demo here.</b> | ||
|
||
# π Table of Contents | ||
|
||
- [Included Features](#features) | ||
- [Tools and Technologies](#tools) | ||
- [Prerequisites](#prerequisites) | ||
- [Associated Developer Tutorial](#tutorial) | ||
- [Run the app locally](#run) | ||
- [Folder Structure](#folder) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
|
||
# βοΈ Included Features <a name="features"></a> | ||
|
||
- [Miro Web SDK](https://developers.miro.com/docs/web-sdk-reference) | ||
> Insert SDK methods here which your project uses | ||
# π οΈ Tools and Technologies <a name="tools"></a> | ||
|
||
> Insert tools and technologies here which your project uses and link to them. | ||
# β Prerequisites <a name="prerequisites"></a> | ||
|
||
- You have a [Miro account](https://miro.com/signup/). | ||
- You're [signed in to Miro](https://miro.com/login/). | ||
- Your Miro account has a [Developer team](https://developers.miro.com/docs/create-a-developer-team). | ||
- Your development environment includes [Node.js 14.13](https://nodejs.org/en/download) or a later version. | ||
- All examples use `npm` as a package manager and `npx` as a package runner. | ||
|
||
> Add any other prerequisites here! | ||
# ππ½ββοΈ Run the app locally <a name="run"></a> | ||
|
||
> <b>Add steps to run the app locally. Try to make them as similar as possible to other example apps for consistency.</b> | ||
1. Run `npm install` to install dependencies. | ||
2. Run `npm start` to start developing. \ | ||
Your URL should be similar to this example: | ||
``` | ||
http://localhost:3000 | ||
``` | ||
3. Open the [app manifest editor](https://developers.miro.com/docs/manually-create-an-app#step-2-configure-your-app-in-miro) by clicking **Edit in Manifest**. \ | ||
In the app manifest editor, configure the app as follows: | ||
|
||
```yaml | ||
# See https://developers.miro.com/docs/app-manifest on how to use this | ||
appName: Example app | ||
sdkUri: "http://localhost:3000" | ||
scopes: | ||
- boards:read | ||
- boards:write | ||
``` | ||
- [`sdkUri`](https://developers.miro.com/docs/app-manifest#sdkuri): assign `http://localhost:3000` as a value for this property. \ | ||
It defines the entry point of the app, and it corresponds to the URL of the server that the app runs on. | ||
- [`scopes`](https://developers.miro.com/docs/app-manifest#scopes): add the permission scopes that users need to grant the app when they install it. \ | ||
To enable the app to read from and write to the board, add the following permissions: | ||
- `boards:read` | ||
- `boards:write` | ||
|
||
4. Go back to your app home page, and under the `Permissions` section, you will see a blue button that says `Install app and get OAuth token`. Click that button. Then click on `Add` as shown in the video below. <b>In the video we install a different app, but the process is the same regardless of the app.</b> | ||
|
||
> β οΈ We recommend to install your app on a [developer team](https://developers.miro.com/docs/create-a-developer-team) while you are developing or testing apps.β οΈ | ||
|
||
https://github.com/miroapp/app-examples/assets/10428517/1e6862de-8617-46ef-b265-97ff1cbfe8bf | ||
|
||
5. Go to your developer team, and open your boards. <b>Refresh your browser</b>. | ||
6. Click on the plus icon from the bottom section of your left sidebar. If you hover over it, it will say `More apps`. | ||
7. Search for your app `Calendar` or whatever you chose to name it. Click on your app to use it, as shown in the video below. <b>In the video we search for a different app, but the process is the same regardless of the app.</b> | ||
|
||
https://github.com/horeaporutiu/app-examples-template/assets/10428517/b23d9c4c-e785-43f9-a72e-fa5d82c7b019 | ||
|
||
# ποΈ Folder structure <a name="folder"></a> | ||
|
||
<b>Explain your folder structure so a developer can quickly understand the layout of your code.</b> | ||
|
||
It should look something like [this](https://github.com/miroapp/app-examples/tree/main/examples/html-preview#folder). | ||
|
||
``` | ||
. | ||
βββ src | ||
βββ initMiro.ts <-- This is where the Node Client is initialized. | ||
``` | ||
# π«±π»βπ«²π½ Contributing <a name="contributing"></a> | ||
If you want to contribute to this example, or any other Miro Open Source project, please review [Miro's contributing guide](https://github.com/miroapp/app-examples/blob/main/CONTRIBUTING.md). | ||
# πͺͺ License <a name="license"></a> | ||
[MIT License](https://github.com/miroapp/app-examples/blob/main/LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MIRO_CLIENT_ID: | ||
MIRO_CLIENT_SECRET: | ||
MIRO_REDIRECT_URL: | ||
MIRO_BOARD_ID: | ||
MIRO_CLIENT_ID= | ||
MIRO_CLIENT_SECRET= | ||
MIRO_REDIRECT_URL= | ||
MIRO_BOARD_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Sticky Title,Sticky Description,Tag1,Tag2,Tag3,Tag4 | ||
I'm a sticky!,Just happy to be here,lorem,ipsum,dolor,sit | ||
Another Sticky?,"Yeah, why not!",tempor,incididunt,magna,aliqua | ||
One more sticky,Sticky life = best life,nostrud,exercitation,ullamco,laboris | ||
I'm a sticky!,Just happy to be here,lorem,ipsum,dolor,sit | ||
Another Sticky?,"Yeah, why not!",tempor,incididunt,magna,aliqua | ||
One more sticky,Sticky life = best life,nostrud,exercitation,ullamco,laboris |
c912756
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
app-examples-wordle β ./examples/wordle
app-examples-wordle.vercel.app
app-examples-wordle-git-main-anthonyroux.vercel.app
app-examples-wordle-anthonyroux.vercel.app
c912756
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
webhooks-manager β ./examples/webhooks-manager
webhooks-manager-git-main-miro-web.vercel.app
webhooks-manager-miro-web.vercel.app
webhooks-manager-sepia.vercel.app