Quickstart Guide

Step-by-step instructions to build a simple client-side monday app with React!

This tutorial walks you through each step to building a simple Hello World app with React. We will start simple and create a more complex app as we go. You can use the same code as a board view, item view, or dashboard widget.

The monday apps framework serves as a set of tools to build on top of monday.com. One monday app can contain multiple features, and the platform supports adding board views, item views, dashboard widgets, automations, and integrations to your apps.

A simple app may contain just a single board view or use multiple views, widgets, and integrations to create a set of functionality that extends across contexts.

Supported frameworks

This tutorial functions solely as an example, but we wrote it with React. You can use any JS framework you want, or you can use none when building your monday apps.

You can also build your server with any language (PHP, Python, etc.). Keep in mind that views and widgets run in a client's browser, so they'll need to compile into HTML/CSS/Javascript.

Before we begin

You will learn:

  • How to build a simple "Hello world" app in React
  • How to package and build your app

Prerequisites

  • Basic understanding of how to create a monday app. To learn more, check out this guide.
  • Basic understanding of web programming (HTML, CSS, JS)
  • Working environment of NodeJS on your computer, as well as a package manager like npm or yarn.
  • A monday.com account. If you don't have one, sign up for a free developer account here.

Configure your monday app

Create your monday app

  1. Navigate to the Developers section and click Create App.
  2. Open the Features tab.

Add a new featureAdd a new feature

  1. Select the feature you would like to add from Board View, Account Settings View, or Dashboard Widget.

    Note: The Accounts Settings View is not a traditional view that users can add to a board. It provides a dedicated space to display the global settings that impact the entire account. If you add this feature, users can access the app's settings in three different places.

    • The settings tab that will appear on the app listing on the Installed Apps page.
    • The Go to App Settings button that will appear in View Settings.
    • Users can click on their profile picture > Admin > Apps. They will then select the three dots (...) next to the app they wish to use and click Settings.
  2. Choose a template or build your own from scratch. For this tutorial, we will select Quickstart - ReactJS

Set up your development environment

After selecting Quickstart - ReactJS, you will need to set up your development environment. We will use the monday-cli package to download the example code and run it locally.

  1. Run the following command.

    Note: This will download the project quickstart-react to your current folder, install the dependencies (npm install), and run the project locally (npm run start).

npx @mondaydotcomorg/monday-cli scaffold run ./ quickstart-react
  1. Wait for the installation process to finish. Keep in mind that it may take a few minutes.
  2. After the app is installed and running, you will see a message that says Your app is served from this URL with a link to your app (e.g. https://abc1234asdlqwe.loca.lit).
  3. Paste this URL in the Custom URL field in the View Setup pane.
  4. If you want to run your application manually in the future, navigate to the folder with the project (quickstart-react) and run "npm run start" command.

Update your view's basic information

After setting up your development environment, the system automatically redirects you to the Feature Editor.

  1. Open the Feature Details tab.

    Note: This is where you can add a title and description to your board view or widget. Users will see the title and description when they see your view or widget on the view or dashboards center.

  2. You can update the feature's name, description, learn more from link, or feedback link. You can also choose whether or not you want to hide the board controls.

  3. Save your changes and navigate to the View Setup tab.

  4. The tab will show you the initial example app and display Hello monday apps.

  5. You should now be able to load up the app for the first time using your tunnel URL. Pretty exciting!

We've recently added an Attention Box element from our design elements to the app's initial load. It looks like this when you first open the app:

hello_monday_attention_boxhello_monday_attention_box

You can find more info on our design system here. You can also reference the Attention Box element.

Build your monday app

In this section, we will write code to display "Hello monday Apps" in a board view or widget.

Edit src/App.js to include a simple UI

  1. Navigate to the quickstart-react folder.

  2. Open the App.js file downloaded in the starter code package.

  3. In the class App() you will see a render() function.

  4. If you want to replace the text displayed in the Attention Box, you can use the text property within the Attention Box element. Replace the text with the words Ready to start my app journey by building a view!. This will display the text "Hello monday Apps!" in your Attention Box within the board view or widget.

    Note: Your App() class should look something like this after these steps:

class App() extends React.Component {
  render() {
    return (
      <div className="App">
      <AttentionBox
        title="Hello monday Apps!"
        text="Ready to start my app journey by building a view!"
        type="success"
      />
      </div>
    );
  }
}
  1. Navigate to Preview after opening the View Setup section. You will see this:
    hello_monday_first_stephello_monday_first_step

Now we're able to edit a style element from our Design System!

Upload your monday app build

To build our simple application, we will bundle it in a ZIP file and upload it to the monday.com server.

  1. Compile your React code into a production build by running npm run-script build. This command will create a new Build folder in your directory.
  2. Create an archive of the contents of your Build folder (ZIP file).
  3. Open your feature and select the Builds tab. Click New Build to upload your production code.
  4. Upload the ZIP you just created.
  5. Open a board and add your view to it. Your app should display data for the first item on the board.

πŸ“˜

Security in our CDN

When you upload a client-side app to our platform, it is hosted on the monday.com apps CDN. Note that this CDN does not have authentication on it. Any views or widgets uploaded to our platform will be publicly-accessible via a randomly-generated (and difficult to guess) URL.

If this is not suitable for you, you can serve your app via an iframe URL instead.

Congratulations Builder!

You've now built a simple monday app that displays data and allows anyone in your account to use it. You and your collaborators will now see your app on your boards!

πŸ“˜

Do you have questions?

Join our developer community! You can share your questions and learn from fellow users and monday.com product experts.

Don’t forget to search before opening a new topic!


What’s Next