CCA Admin Handbook

Introduction

This handbook guides you in installing, configuring, and managing your CCA Selection System (CCASS) instance.

Downloading

You may obtain a stable or development version. The stable version is recommended for production.

External dependencies

You need a Go toolchain, Pygments, GNU make, TeX Live and minify. If you have everything else, you could install minify via make minifier, which would build and install it with your Go toolchain.

The Go toolchain will fetch more dependencies. You may wish to set a Go proxy (such as via export GOPROXY='https://goproxy.io') if it stalls or is too slow. This is likely necessary for users in Mainland China due to firewall restrictions.

Building

Just type make.

The built files will appear in dist/. The binary, with all runtime resources other than the configuration file embedded, is located at dist/cca. A minified copy of the documentation, including a sample configuration file, is located at dist/docs/.

Configuration

Copy the example configuration file to cca.scfg in the working directory where you intend to run CCASS. Then edit it according to the comments, though you may wish to pay attention to the following:

Database setup

A working PostgreSQL setup is required. It is recommended to set up UNIX socket authentication and set the user running CCASS as the database owner while creating the database.

Before first run, run psql dbname -f sql/schema.sql to create the database tables, where dbname is the name of the database.

Using the same database for different versions of CCASS is currently unsupported, although it should be trivial to manually migrate the database.