Server part for ReactJS-based web-app for fast bill splitting between friends
Provides REST API
https://zavedyaev.ru/bill-splitter
Bill-Splitter-Server app is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
- mysql
- docker
-
Create a database and user
create database bill_splitter; create user 'bill_splitter'@'%' identified by 'bill_splitter'; grant all on bill_splitter.* to 'bill_splitter'@'%';
-
build docker image and push it
./gradlew bootBuildImage docker tag docker.io/library/bill-splitter-server:0.0.12-SNAPSHOT zavedyaev/bill-splitter-server:0.0.12-SNAPSHOT docker push zavedyaev/bill-splitter-server:0.0.12-SNAPSHOT
or
./gradlew bootJar docker build -t docker.io/library/bill-splitter-server:0.0.12-SNAPSHOT . docker tag docker.io/library/bill-splitter-server:0.0.12-SNAPSHOT zavedyaev/bill-splitter-server:0.0.12-SNAPSHOT docker push zavedyaev/bill-splitter-server:0.0.12-SNAPSHOT
-
pull and run it on server
docker pull zavedyaev/bill-splitter-server:0.0.12-SNAPSHOT docker run -p 8081:8081 --add-host=dockerhost:172.17.0.1 -d -m 314572800 --memory-swap 600000000 --restart always -v /etc/letsencrypt/live/zavedyaev.ru:/certs zavedyaev/bill-splitter-server:0.0.12-SNAPSHOT