Skip to content

kiibohd/KiiConf

 
 

Repository files navigation

KiiConf

Travis Status

Visit our IRC channel

KiiConf is composed by two main programs:

  • the editor
  • the configurator

The editor is meant for admins and it is used to generate the layout file for the configurator.

The configurator loads the layout and lets the user configure the keyboard layers.

NOTE: the applications are set up in debug mode by calling the APP constructor with the first parameter set to true. In production it should be set to false or simply undefined.

Environment Setup

Prerequistes

Required

  • Web server (e.g. lighttpd, apache, etc.)
  • php5-cgi
  • cmake >= 2.8
  • arm-none-eabi-gcc (binutils as well)
  • python3
  • git
  • node.js
  • hexdump (bsdmainutils)

Recommended

  • dfu-suffix >= 0.7 (part of dfu-util)

Optional

  • ctags

Intial Dev Setup

  • Enable web server and point it to the KiiConf/dist directory (this directory will get removed and added during build so you may want to make a symbolic link to this directory)
  • Make sure that the following directories have permissions for the web-server to write
    • KiiConf/tmp
    • KiiConf/layouts
  • Then setup the firmware sources. This script can be run anytime you want to update the firmware source version.
cd KiiConf
./update_controller.bash
  • Update npm packages with npm install
  • Finally build the project with gulp (if globally installed) gulp dev

The dev build will create a dist directory and symlink to the controller and tmp directories to allow ensure you do not have to re-build or download them.

Docker Environment

NOTE: Docker environment is not yet complete, but should work well for testing

See Dockerfile for usage examples.

Dependencies

  • docker
  • Make sure docker info is working

Sanity Check

tests/docker_test.bash

About

Input Club web configurator, designed by matt3o.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.2%
  • Shell 12.2%
  • PHP 9.1%
  • CSS 8.5%
  • HTML 5.9%
  • Dockerfile 2.1%