# Writing Tilde Friends applications7 TODO ## Creating your environment 1. Open an existing application (ie: `identity`); 2. Open the editing panel; 3. Save the app under a new name (ie `/~YOUR_USERNAME/my-app/`); 4. Go back to the main menu and open your new app; 5. You can now edit your app, save it and see changes in the real time. ## Project structure An application has a `app.js` file that gets run when a user enters the app. This file contains a function (typically called `main()`) that's considered the entry point. Paste this in `app.js`: ```javascript async function main() { let ids = await ssb.getIdentities(); await app.setDocument(`