liudonghua123 / device_reservation_mgmt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

device_reservation_mgmt

How to develop

  1. git clone git@github.com:liudonghua123/device_reservation_mgmt.git
  2. cd device_reservation_mgmt
  3. follow the following server setup and client setup instructions.

Server setup

  1. install and start mysql, sudo apt update && sudo apt install mysql-server && sudo mysql_secure_installation
  2. install and start redis, sudo apt update && sudo apt install redis-server

create database in mysql

mysql -u root -p
create user 'device_reservation'@'%' IDENTIFIED WITH mysql_native_password by 'device_reservation@ynu!@#';
grant all privileges on device_reservation.* to 'device_reservation'@'%';
flush privileges;
create database device_reservation default charset utf8mb4;
use device_reservation;
source jeecg-boot/db/jeecgboot-mysql-5.7.sql;

redis initialize

# 
redis-cli
auth default xxx
# https://redis.io/commands/acl-setuser/
# allkeys allchannels same as ~* &*
ACL SETUSER device_reservation on >device_reservation@ynu!@# allkeys allchannels +@all -flushdb -flushall

update configurations

  1. update the database connetion info in datasource.master of jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml

build

mvn clean package -DskipTests

Client setup

install dependences

pnpm install

dev or build

yarn dev/build

About


Languages

Language:Java 80.9%Language:Vue 10.1%Language:TypeScript 6.6%Language:FreeMarker 0.8%Language:CSS 0.8%Language:Less 0.4%Language:JavaScript 0.3%Language:HTML 0.0%Language:Dockerfile 0.0%Language:Shell 0.0%