From 6110f14830a9345aeac7eccfe4919c109b4a6434 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 17 Aug 2017 14:54:30 +0300 Subject: readme.txt -> README.md --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ readme.txt | 39 --------------------------------------- 2 files changed, 50 insertions(+), 39 deletions(-) create mode 100644 README.md delete mode 100644 readme.txt diff --git a/README.md b/README.md new file mode 100644 index 00000000..21ceb6a6 --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +Juick +--- + +``` +git clone git@x.juick.com:/srv/git/juick.git + +cd juick + +git submodule update --init + +mysql -u user -p + create database juick; + exit + +mysql -u user -p < juick-server/src/main/resources/schema.sql + +mysql -u user -p + use juick; + insert into users (id, nick, passw) values (1, 'ugnich', 'fuckthis'); + insert into logins (user_id, hash) values (1, 'fuckthisverymuch'); + exit +``` +Прописать в `juick-www/src/main/resources/juick.conf` + +``` + datasource_url=jdbc:mysql://localhost/juick + datasource_user=juick + datasource_password=juick +``` + +Для сборки front-end необходим установленный npm (runtime node js) не ниже 3-й версии и jdk8 + +``` +./gradlew :juick-www:compileFrontend + +./gradlew :juick-www:appRun +``` + +Логин: http://localhost:8080/login?hash=fuckthisverymuch + + +чтобы работал юникод, в `~/.my.cnf` добавить: + +``` +[client] +default-character-set=utf8mb4 +[mysqld] +character-set-client-handshake = FALSE +character-set-server = utf8mb4 +``` \ No newline at end of file diff --git a/readme.txt b/readme.txt deleted file mode 100644 index 512de38f..00000000 --- a/readme.txt +++ /dev/null @@ -1,39 +0,0 @@ -git clone git@x.juick.com:/srv/git/juick.git - -cd juick - -git submodule update --init - -mysql -u user -p - create database juick; - exit - -mysql -u user -p < juick-server/src/main/resources/schema.sql - -mysql -u user -p - use juick; - insert into users (id, nick, passw) values (1, 'ugnich', 'fuckthis'); - insert into logins (user_id, hash) values (1, 'fuckthisverymuch'); - exit - -Прописать в juick-www/src/main/resources/juick.conf - datasource_url=jdbc:mysql://localhost/juick - datasource_user=juick - datasource_password=juick - -Для сборки front-end необходим установленный npm (runtime node js) не ниже 3-й версии и jdk8 - -./gradlew :juick-www:compileFrontend - -./gradlew :juick-www:appRun - -http://localhost:8080/login?hash=fuckthisverymuch - - -чтобы работал юникод, в ~/.my.cnf добавить: - -[client] -default-character-set=utf8mb4 -[mysqld] -character-set-client-handshake = FALSE -character-set-server = utf8mb4 -- cgit v1.2.3