# Search

Search

Loading search index…

No recent searches

No results for "Query here"

# Application Structure

Taking our directory structure from the API Tutorial we created here.

    bootstrap
    ├── application.php
    ├── routes.php
    environment
    ├── .env
    ├── settings.ini
    public
    ├── index.php
    ├── .htaccess
    services
    ├── AuthService.php
    static
    ├── bootstrap.min.css
    ├── favicon.ico
    ├── favicon.png
    ├── pionia_logo.webp
    storage
    ├── scripts
    ├── rename.php
    switches
    ├── MainSwitch.php
    ├── .gitignore
    ├── README.md
    ├── composer.json
    ├── pionia

## Directory Structure Breakdown#

Name | Role | Type
--- | --- | ---
bootstrap | This is where we store our application and routes. `application.php` helps to bootstrap the Pionia application that shall be used by both our CLI and web kernels. | Folder
environment | This holds our environment configuration files, can contain profile-specific environment too! | Folder
public | This handles all HTTP requests and boots up our web kernel using the Pionia application created in `bootstrap/application.php` | Folder
services | This is where all our services are stored. This is where you should focus most. All business logic resides here. | Folder
static | These holds static files that the might you may need or that might be needed by the framework itself. In the future, this folder might be used to serve frontend SPAs | Folder
storage | This where application generated files are stored. These might include caches, logs, and scripts. Please do not remove `rename.php` in scripts | Folder
switches | This is where our app switches reside. | Folder
.gitignore | This file is used to tell git which files to ignore when pushing to the repository. | File
composer.json | This file is used to manage the dependencies of the project. It is used by composer to install the dependencies. | File
pionia | This handles all our CLI commands, whether inbuilt or your custom commands. Just run `php pionia` to boot this CLI up | File
README.m | A simple getting started guide for the project. | File

Pionia is a progressive framework, there more folders might be included as you need/require them. Other folders might include `middlewares`, `authentications`, `commands`. All these will only be added when you invoke/initiate them.