# Files and projects

A small example fits in one file. A real app reads better when each file does one job. Every new
project is laid out like this:

```
my-app/
  README.md
  assets/              icon.png, splash.png, your pictures and sounds
  src/
    main.vi            the main screen: puts the pieces together
    config.vi          app name, icon, splash screen, store id
    theme.vi           colours used everywhere
    tasks.vi           the data, and the functions that change it
    components/
      header.vi        one piece of the screen per file
      task_row.vi
```

- **Every file sees every name** in the project. There are no imports between your own files:
  `src/main.vi` can show `header` from `src/components/header.vi` just by naming it.
- A name may be defined in **one** file only. Two files defining `header` is an error that names
  both files.
- `src/main.vi` holds the `main` container: that is where the app starts.
- Hover a name, or press F12 on it (**Go to Definition**), to see which file it lives in.
- Code from the internet is the one thing you import, by address:
  `from "https://example.com/widgets.vi" import star_rating` (coming soon).
