koyo comes with a command line utility which you can use to get started quickly.
Running raco koyo new <project-name> from the command line will get you set up with a basic web application. From there, you should follow the instructions in the generated "README.md" file and take a look at the generated source code.
You can then use raco koyo serve to run your application, although, generally, it’s more convenient to use chief (which iself runs raco koyo serve based on the configuration in "Procfile") in order to be able to both compile your assets and run the web server from a single terminal session.
Running raco koyo new example generates the following project structure in the current directory:
Contains all the application logic.
Contains tests for all of the distinct components in the application.
Database schema migrations go in here.
Assets compiled by the asset pipeline go in here. Not committed to source control.
A list of default environment variables for your application. Generally committed to source control.
Contains the node version required to work on your application. This is used by nvm to set up the environment appropriately for that respective version.
The asset pipeline (Broccoli) configuration file. Describes how (and which) assets are to be preprocessed before being copied into the static/ folder.
The process configuration file. Used by chief to determine which processes to run when it starts a development server. By default, it runs a process to build the assets on change and the application web server.
Describes the node dependencies for the asset pipeline.
The application folder is further subdivided into:
Contains the implementation for every page in your application (the presentation).
Contains the implementation for every bit of business logic in your application.
Contains all of the application's configuration options.
The main entrypoint for the application. Everything gets wired together in this file.
Describes the package that makes up your application and its dependencies.
Running raco koyo console from within the root of a koyo application starts an interactive REPL with that application’s components loaded into scope.
Each component is available by prefixing $% to its name. For example, if you have a component named database then you would access it from the console using $%database.
The $%start and $%stop procedures can be used to start and, respectively, stop the system from the console. The $%start procedure is implicitly called at the beginning of every console session.