Quick start guide to install and use 1Config.
ATTENTION: The version v0.17.1 is a transition version between the old format v0.16.4 and the new persistence format v0.21.0. Use this version only if you have an existing installation that you want to migrate to v0.21.0+. Use v0.16.4 if you happy with your current solution.
This version has a migration task to migrate the database to a new
persistence format. When you SET a new configuration entry, the
entry will be written in two different format, the old one and the new
one thus allowing the version v0.21.0 to read it as well.
v0.21.0 GET SET LIST (new format)
^ |
| v
v0.17.1 GET SET LIST
| | |
v v v
v0.16.4 GET SET LIST (old format)
The version v0.21.0 can only GET and SET entries with the new format,
while v0.17.1 will GET and LIST work as before, SET will write both
formats.
For more info see the migration page
mkdir -p ~/bin
wget https://github.com/BrunoBonacci/1config/releases/download/0.17.1/1cfg -O ~/bin/1cfg
wget https://github.com/BrunoBonacci/1config/releases/download/0.17.1/1cfg-ui-beta -O ~/bin/1cfg-ui-beta
chmod +x ~/bin/1cfg
export PATH=~/bin:$PATH
md %userprofile%\1config\bin1cfg.cmd with ren %userprofile%\1config\bin\1cfg %userprofile%\1config\bin\1cfg.cmd1cfg-ui-beta.cmd with ren %userprofile%\1config\bin\1cfg-ui-beta %userprofile%\1config\bin\1cfg-ui-beta.cmd%userprofile%\1config\bin.1cfg -hexport AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=yyy
export AWS_REGION=eu-west-1
1cfg INIT -b dynamo
hello-world1cfg SET -b dynamo -k hello-world -e test -v 1.0.0 -t txt 'secret password'
1cfg LIST
1cfg GET -b dynamo -k hello-world -e test -v 1.0.0
(require '[com.brunobonacci.oneconfig :refer [configure]])
(configure {:key "hello-world" :version "1.0.0" :env "test"})
There is support for edn, txt, json and Java properties format.
and supports Clojure, Java, Groovy, and other JVM languages (more to come)
If you managed to do the above step successfully you are ready to run the web UI with:
1cfg-ui-beta
Server started: http://127.0.0.1:5300
Once the Server started message appeared you are ready to open your
favourite browser at: http://127.0.0.1:5300
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |