|
1 | 1 | # keymanweb.com |
2 | 2 |
|
3 | | -Home page for online web keyboard with support for over 2000 languages |
| 3 | +This is the source for the website https://keymanweb.com/, which hosts the |
| 4 | +KeymanWeb online keyboard supporting over 2500 different languages. This site |
| 5 | +runs on Apache in a Docker container. |
| 6 | + |
| 7 | +## Other Keyman websites |
| 8 | + |
| 9 | +* **[api.keyman.com]** - database backend for Keyman websites |
| 10 | +* **[help.keyman.com]** - documentation home for Keyman |
| 11 | +* **[keyman.com]** - Keyman home |
| 12 | +* **[keymanweb.com]** - KeymanWeb online keyboard |
| 13 | +* **[s.keyman.com]** - static Javascript, font, and related resources |
| 14 | +* **[website-local-proxy]** - run all Keyman sites on localhost on the same port |
| 15 | + |
| 16 | +## How to run keymanweb.com locally |
| 17 | + |
| 18 | +When run locally, this site can be accessed at http://localhost:8057 or |
| 19 | +http://web.keyman.com.localhost:8057. Note that the site is internally called |
| 20 | +web.keyman.com, but the public site is at keymanweb.com; web.keyman.com |
| 21 | +automatically forwards to keymanweb.com. |
| 22 | + |
| 23 | +**Recommended:** Use [website-local-proxy] to run multiple keyman.com sites |
| 24 | +all from the same port (default port 80). |
| 25 | + |
| 26 | +**Recommended:** Use [shared-sites] to control startup and shutdown of all |
| 27 | +keyman.com sites together. |
| 28 | + |
| 29 | +### Prerequisites |
| 30 | + |
| 31 | +The host machine needs the following apps installed: |
| 32 | +* [Git] |
| 33 | +* Bash 5.x (on Windows, you can use Git Bash that comes with [Git]) |
| 34 | +* [Docker Desktop] |
| 35 | + |
| 36 | + <details> |
| 37 | + <summary>Configuration of Docker on Windows</summary> |
| 38 | + |
| 39 | + On Windows machines, you can setup Docker in two different ways, either of |
| 40 | + which should work: |
| 41 | + * [Enable Hyper-V on Windows 11](https://techcommunity.microsoft.com/t5/educator-developer-blog/step-by-step-enabling-hyper-v-for-use-on-windows-11/ba-p/3745905) |
| 42 | + * [WSL2](https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#1-overview) |
| 43 | + |
| 44 | + </details> |
| 45 | + |
| 46 | +### Actions |
| 47 | + |
| 48 | +#### Build the Docker image |
| 49 | + |
| 50 | +The first time you want to start up the site, or if there have been Docker |
| 51 | +configuration changes, you will need to rebuild the Docker images. Start a bash |
| 52 | +shell, and from this folder, run: |
| 53 | + |
| 54 | +```sh |
| 55 | +./build.sh build |
| 56 | +``` |
| 57 | + |
| 58 | +#### Start the Docker container |
| 59 | + |
| 60 | +To start up the website, in bash, run: |
| 61 | + |
| 62 | +```sh |
| 63 | +./build.sh start --debug |
| 64 | +``` |
| 65 | + |
| 66 | +Once the container starts, you can access the web.keyman.com site at |
| 67 | +http://localhost:8057 or http://web.keyman.com.localhost:8057. Note that the |
| 68 | +site is internally called web.keyman.com, but the public site is at |
| 69 | +keymanweb.com; web.keyman.com automatically forwards to keymanweb.com. |
| 70 | + |
| 71 | +#### Stop the Docker container |
| 72 | + |
| 73 | +In bash, run: |
| 74 | + |
| 75 | +```sh |
| 76 | +./build.sh stop |
| 77 | +``` |
| 78 | + |
| 79 | +#### Remove the Docker container and image |
| 80 | + |
| 81 | +In bash, run: |
| 82 | + |
| 83 | +```sh |
| 84 | +./build.sh clean |
| 85 | +``` |
| 86 | + |
| 87 | +#### Running tests |
| 88 | + |
| 89 | +To check for broken links and .php file conformance, when the site is running, |
| 90 | +in bash, run: |
| 91 | + |
| 92 | +```sh |
| 93 | +./build.sh test |
| 94 | +``` |
| 95 | + |
| 96 | +[Git]: https://git-scm.com/downloads |
| 97 | +[Docker Desktop]: https://docs.docker.com/get-docker/ |
| 98 | +[api.keyman.com]: https://github.com/keymanapp/api.keyman.com |
| 99 | +[help.keyman.com]: https://github.com/keymanapp/help.keyman.com |
| 100 | +[keyman.com]: https://github.com/keymanapp/keyman.com |
| 101 | +[keymanweb.com]: https://github.com/keymanapp/keymanweb.com |
| 102 | +[s.keyman.com]: https://github.com/keymanapp/s.keyman.com |
| 103 | +[website-local-proxy]: https://github.com/keymanapp/website-local-proxy |
| 104 | +[shared-sites]: https://github.com/keymanapp/shared-sites |
| 105 | +[enable Hyper-V]: https://techcommunity.microsoft.com/t5/educator-developer-blog/step-by-step-enabling-hyper-v-for-use-on-windows-11/ba-p/3745905 |
| 106 | +[enable WSL2]: https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#1-overview |
0 commit comments