#!/usr/bin/env bash
source templates/head.sh
echo "
Hello from HTTP.sh!
To get started with your app, check out $(pwd)/${cfg[namespace]}/
- $(pwd)/${cfg[namespace]}/${cfg[root]} - your (public) files go here
- $(pwd)/${cfg[namespace]}/workers/ - worker directory, with an example one ready to go
- $(pwd)/${cfg[namespace]}/views/ - individual views can be stored there, to be later referenced by routes.sh
- $(pwd)/${cfg[namespace]}/templates/ - template files live over there
- $(pwd)/${cfg[namespace]}/config.sh - config for everything specific to your app AND workers
- $(pwd)/${cfg[namespace]}/routes.sh - config for the HTTP.sh router
Fun things outside of the app directory:
- $(pwd)/config/master.sh - master server config
- $(pwd)/config/ - config loaded if a request is made to a specific hostname
- $(pwd)/storage/ - directory for storing all and any data your app may produce
- $(pwd)/secret/ - user accounts and other secret tokens live here
- $(pwd)/src/ - HTTP.sh src, feel free to poke around ;P
"