Dikann's web service is the backbone of Dikann. It provides you with a secure, fast, and powerful API to create, read, update, and delete Users, Products, Discounts, Category, etc.
There are two ways to install Dikann's web service on your machine. The easiest way is by using docker.
Download the latest version of web-service-docker.zip
from here.
unzip web-service-docker.zip
cd web-service-docker
.env
file contains all the configurations of Dikann's web service.
Make sure to change
DIKANN_ADMIN_EMAIL
,DIKANN_ADMIN_PASSWORD
,DIKANN_JWT_SECRET_KEY
,POSTGRESQL_DATABASE_password
variables.
vi .env
docker-compose up
Make sure you have openjdk >= 8 installed on your machine.
Dikann uses PostgreSQL as its database.
Download PostgreSQL from here.
Install PostgreSQL on your machine and create a database and a user with privileges to that database. Docs
You can also use Docker to install PostgreSQL on your machine. more information
Download the latest version of web-service.zip
from here.
unzip web-service.zip
cd web-service-docker
.env
file contains all the configurations of Dikann's web service.
Make sure to change
DIKANN_ADMIN_EMAIL
,DIKANN_ADMIN_PASSWORD
,DIKANN_JWT_SECRET_KEY
,POSTGRESQL_DATABASE_NAME
,POSTGRESQL_DATABASE_USER
,POSTGRESQL_DATABASE_password
variables.
vi .env
java -jar dikann-web-service.jar --spring.config.location=application.properties
All the documentations can be found here.