Read-only mirror of https://github.com/swisstopo/swissgeol-landingpage-config — Bundesamt für Landestopografie. Issues & pull requests at the source.
  • SCSS 42.6%
  • JavaScript 25.3%
  • HTML 17.6%
  • Shell 13.6%
  • Dockerfile 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-13 17:00:55 +02:00
.github Add role to assume to action 2025-07-01 11:51:25 +02:00
deployment Setup apostrophe 2025-06-11 15:33:39 +02:00
k8s Add memory request to deployment configuration 2026-07-30 11:12:42 +02:00
lib Add lint to scripts 2025-06-18 10:36:43 +02:00
modules Fixes build pipeline by overriding transitive dependency issue with htmlparser2 version 2026-08-13 11:40:08 +02:00
public/images Add two col widget for projects, add dropdown inside projects widget and for lang selector 2025-08-04 08:57:59 +02:00
scripts Setup apostrophe 2025-06-11 15:33:39 +02:00
views add nonce in overseen inline script 2026-08-13 12:21:37 +02:00
.dockerignore Add Header and Footer in layout.html including styles 2025-07-22 12:59:39 +02:00
.eslintrc Setup apostrophe 2025-06-11 15:33:39 +02:00
.gitignore Add helm files 2025-06-11 16:55:02 +02:00
.prettierignore Reformat yaml files 2025-06-18 10:36:43 +02:00
app.js Run lint fix 2026-06-10 16:18:05 +02:00
CHANGELOG.md update changelog 2026-08-13 16:56:06 +02:00
docker-compose.yml Update Helm files and add mongo-express 2025-06-18 16:01:31 +02:00
Dockerfile Add version to Dockerfile 2025-07-23 11:42:36 +02:00
eslint.config.js Reformat yaml files 2025-06-18 10:36:43 +02:00
LICENSE Setup apostrophe 2025-06-11 15:33:39 +02:00
package.json Fixes build pipeline by overriding transitive dependency issue with htmlparser2 version 2026-08-13 11:40:08 +02:00
postcss.config.js Add lint to scripts 2025-06-18 10:36:43 +02:00
README.md Setup apostrophe 2025-06-11 15:33:39 +02:00

ApostropheCMS essentials starter kit

Getting started

This Starter Kit, also known as a boilerplate project, serves as a template for initiating new projects and is intended for use in two main ways:

  1. Using Our CLI Tool: Run our CLI tool to clone this template locally, install its dependencies, and set up an initial admin user. You accomplish this using:

    apos create <my-project-name>

  2. Manual Setup: Manually git clone this repository and install its dependencies using npm install. Add an initial admin user with node app @apostrophecms/user:add admin admin.

For those who need to create multiple projects with additional base modules, consider forking this repository into your organizational or personal GitHub account. Customize it to fit your needs. To use your customized template, run the following CLI command:

apos create <project-name> --starter=<repo-name>

Here, <repo-name> should be the URL of your forked repository, excluding the https://github.com/ part.

Note: This template is NOT designed to be installed into an existing project.

Running the project

Run npm run dev to build the Apostrophe UI and start the site up. Remember, this is during alpha development, so we're all in "dev mode." The dev script will watch for saves in client-side CSS and Javascript and trigger a build and page refresh if they are detected. It will also restart the app when server-side code is saved.

Making it your own

This boilerplate is designed so you can install and start running it right away. If you are starting a project that will go into production one day, there are a few things you should be sure to check:

  • Update the shortname. You don't need to perform this step if you created your project using the CLI tool. The shortname option in app.js is used for the database name (unless another is given in the @apostrophecms/db module). You should change this to an appropriate project name before you start adding any users or content you would like to keep.
  • Update the Express.js session secret. The secret is set to undefined initially in the modules/@apostrophecms/express/index.js file. You should update this to a unique string.
  • Decide if you want hot reloading on. This boilerplate uses nodemon to restart the app when files are changed. In modules/@apostrophecms/asset/index.js there is an option enabled to refresh the browser on restart. If you like this, do nothing. If you don't, remove the option or set it to false. The option has no effect when the app is in production.
  • Update the className options in app.js. This option is set for core widget types to provide CSS styling hooks. It is namespaced with bp- for "boilerplate." You will likely want to update that to match your general CSS class naming practices.

You really want the docs

Right now, all the juicy info is in the ApostropheCMS docs, so head over there and start reading! This boilerplate project is a fun introduction to the UI, but you'll want to know more to really try it out.