Zotonic is a set of regular OTP applications. These can be found in the repository’s apps/ directory:
The main directory contains the startup script “start.sh” and the makefile “Makefile” to build the system.
The Rebar3 build directory.
Place here checkouts of dependencies that are in development and
should be used instead of the dependencies in
as mentioned in the
rebar.config files of all other apps.
Shell scripts for the Zotonic Command-line and scripts for maintaining
Documentation sources files.
The main zotonic include files.
All core modules of Zotonic. See the modules documentation for more information.
The priv directory is the place where all non core files statis assets are placed.
The Erlang source for the core Zotonic system.
Currently there are two behaviours defined. One for scomps and one for models.
The database drivers. Currently, only PostgreSQL is supported as DBMS. As the modules and models sometimes use database specific queries (especially for full text search) it will not be easy to substitute an alternative database. Read this article why Zotonic only supports PostgreSQL.
The database model and basic installation for sites. The files here are used when an empty database is found and needs to be installed.
The data model access files. Implements internal APIs for the different data models for use in Erlang modules and templates. Examples of datamodels are m_rsc, m_config and m_category.
All base Zotonic source code. Here you will find the source code for site supervisors, module supervisors, image resize server, context routines, and much more.
Contains the EUnit tests for Zotonic.
The Zotonic status site.
The Zotonic testsandbox site that tests are run against.
This directory contains user-modifiable source code which runs in
Zotonic, namely user-defined sites, modules and other Erlang/OTP
apps_user directory is the default location of the
ZOTONIC_APPS environment variable. See Useful environment variables.