Local Development
Coal has a local development server to help you test your project locally and handle serving of HTML, CSS, JS, and images.
Running Local Dev Server
Default Dev Server
By using the default serve mode, Coal will expect a folder called ./src and run on port
8041
coal serve
Custom Dev Server Source
To set the source folder of the project, provide it to serve as an argument.
coal serve --source my_source/
coal serve -s my_source/
Custom Dev Server Port
To set the port of the dev server, provide it to serve as an argument.
coal serve --port 1337
coal serve -p 1337
For more detailed information, see CLI documentation.