This is the source for the website https://api.keyman.com/, which hosts the database backend for Keyman websites. This site runs on Apache in a Docker container, and the database itself runs on SQL Server for Linux in a separate container.
- api.keyman.com - database backend for Keyman websites
- help.keyman.com - documentation home for Keyman
- keyman.com - Keyman home
- keymanweb.com - KeymanWeb online keyboard
- s.keyman.com - static Javascript, font, and related resources
- website-local-proxy - run all Keyman sites on localhost on the same port
When run locally, this site can be accessed at http://localhost:8058 or http://api.keyman.com.localhost:8058.
Recommended: Use website-local-proxy to run multiple keyman.com sites all from the same port (default port 80).
Recommended: Use shared-sites to control startup and shutdown of all keyman.com sites together.
The host machine needs the following apps installed:
-
Bash 5.x (on Windows, you can use Git Bash that comes with Git)
-
Configuration of Docker on Windows
On Windows machines, you can setup Docker in two different ways, either of which should work:
The first time you want to start up the site, or if there have been Docker configuration changes, you will need to rebuild the Docker images. Start a bash shell, and from this folder, run:
./build.sh buildTo start up the website, in bash, run:
./build.sh start --debugOnce the container starts, you can access the api.keyman.com site at http://localhost:8058 or http://api.keyman.com.localhost:8058
In bash, run:
./build.sh stopIn bash, run:
./build.sh cleanTest suites run with mock data from the tests/data folder. To check APIs, broken links and .php file conformance, when the site is running, in bash, run:
./build.sh testTo force a rebuild of the test database from the mock data (for example if schema changes and this is not automatically detected):
./build.sh test --rebuild-test-fixtures