# Step 1: Create and configure an app

Through this step, you will create a test app and  enable web app feature.

## Procedure

1. Log in to [Developer Console](https://open.feishu.cn/app).

2. On the homepage, click **Create Custom App**, fill in the app name, description, and icon information, and then click **Create**.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/c39d15cf5a5b21d767fe18f6b8fac1c6_h05gJoi0uf.png?height=1668&lazyload=true&maxWidth=600&width=2502)

3. In the left navigation bar, enter the **Test Companies and Users** page, and click **Create Test Company** in the upper right corner of the page.
To meet the demand for frequent configuration changes during the development and testing stages, Feishu Open Platform provides [Test Companies and Users](https://open.feishu.cn/document/home/introduction-to-custom-app-development/testing-enterprise-and-personnel-functions) function. During the development phase, developers are recommended to use the test version of the app, where permissions and configuration changes will take effect directly without the need for administrator approval. Testing will also be conducted within the testing tenant. 
<br>
Once all development and testing are completed, the app can be switched and manually synchronized to the official version, requiring only one submission for review. This greatly enhances development efficiency and minimizes disruption to administrators.

4. In the **Create Test Company** dialog box, fill in **Test Company Name**, **Phone number**, **Verification code**, and click **Confirm**.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/e13ff5220e699bba260574defc6df085_k3gDBD6Kg8.png?height=986&lazyload=true&maxWidth=600&width=2954)

5. After the test company is created, in the **Actions** column, click **Install this app**.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/8249a45a5effdb6ea331cfaa4a757f97_GkpMR6fePJ.png?height=592&lazyload=true&maxWidth=600&width=2936)

6. After testing the app, switch the app to the test version at the top of the page.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/ff3e4c280cea08ec0bd16125c9cb634d_eLh0HbSmuH.png?height=480&lazyload=true&maxWidth=600&width=3570)

7. Add web app feature.

1. On the left navigation bar of the app details page, click **Add Features**.

2. On the **Add features to your app** tab, find the **Web App** card, and click **Add**.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/f4191bd00036623d979d7600218bb136_2uMfIAwsLz.png?height=988&lazyload=true&maxWidth=600&width=3408)

3. On the left navigation bar, enter the **Web App** page, configure **Desktop homepage** and **Mobile homepage**, and click **Save**.

Both the desktop homepage and the mobile homepage need to fill in `http://127.0.0.1:3000`.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/85bc0571172506908ee7b64368661d54_q4pfx3WX0P.png?height=986&lazyload=true&maxWidth=600&width=2286)

4. On the left navigation bar, enter the **Security Settings** page, and add domain names in the **Redirect URLs**, **H5 trusted domains** areas in sequence.

- Fill in `http://127.0.0.1:3000/` for the redirection URL

Must end with `/`, otherwise `tt.requestAuthCode` in the process of free login will fail to obtain the code.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/79c017e9b62b2ac8d30ea140dde54457_zmUBftEpWl.png?height=958&lazyload=true&maxWidth=600&width=3070)

- Fill in `http://127.0.0.1:3000` for H5 trusted domain name

It is necessary to configure the H5 trusted domain name, otherwise the application will fail to access [JSAPI](https://open.feishu.cn/document/uYjL24iN/uMTMuMTMuMTM/).

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/71c65b59de047ee002758fc828bf787d_7xHvlg6akX.png?height=1298&lazyload=true&maxWidth=600&width=3120)