ExpressJS based API centric static site CMS.
npm init(If you haven't already)
npm install boxescms
npx boxes init
npm start dev
Env variables. Copy from .env.example.
app.js to extend the Express app instantiated from BoxesCMS. Must export a function that receives the app as first argument.
Data layer for static HTML generation from
**/* must match between the relative path of
/web/pug. See Template Data section for more details.
Server and node related files.
Only API routes. All routes are prepended with
/api, appended with folder/file relative path. Routes should be declared using
Additional custom routes.
Web related files (html, pug, sass, scss, js, images, statics).
Web files will be compiled here, and served as root static by Node server.
Contents should be ignored. Storage folder for various runtime data usage.
External configuration files.
There is 2 special env var that you can use in your JS files:
process.env.VERSION is taken from your project's
process.env.BUILD_HASH is a randomly generated per build 64 length hex char.