strapi/docs/3.0.0-beta.x/concepts/file-structure.md
Alexandre Bodin cbdc83d6d7 Move core middleware configs to the middleware concept doc
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-29 11:06:41 +02:00

1.8 KiB

Files structure

By default, your project's structure will look like this:

  • /.cache: contains files used to build your admin panel.
  • /admin: contains your admin customization files.
  • /api: contains the business logic of your project split into sub-folders per API.
  • /build: contains your admin panel UI build.
  • /config
    • /functions: contains lifecycle or generic functions of the project.
      • /responses: contains custom responses.
        • 404.js: contains a template for constructing your custom 404 message.
      • bootstrap.js: contains the code executed at the application start.
      • cron.js: contains the cron tasks.
    • server.js: contains the general configurations of the project.
    • database.js: contains the database configurations of the project.
  • /extensions: contains the files to extend installed plugins.
  • /hooks: contains the custom hooks of the project.
  • /middlewares: contains the custom middlewares of the project.
  • /plugins: contains your local plugins.
  • /public: contains the files accessible to the outside world.
  • /node_modules: contains the npm packages used by the project.