Git Product home page Git Product logo

server-1's Introduction

JRASP后台管理系统

系统搭建与工程编译

01 数据库初始化

  • 创建mysql数据库(如有,请跳过)

  • 表结构与表数据初始化

工程根目录下sql目录下有 table.sql 表结构文件和data.sql表数据文件,分别在mysql客户端(例如:MYSQLWorkbench)中初始化。

  • 修改application-prod.yml中数据库的ip、用户名和密码(下图中红色数字1和2处)

application.yml

  • 修改 kafka 集群配置(上图中红色数字3处,单节点也可以)

  • 修改 nacos 集群配置(上图中红色数字4处,单节点也可以)

02 server 工程修改配置并编译运行

  • 编译环境 jdk8

在工程根目录下执行

mvn clean package

输出jar包在rasp-admin/target/rasp-admin.jar

  • 运行
java -jar rasp-admin.jar

可以配置守护进程如使用:systemctl或者supervisor

03 指定额外配置

  • jar包编译好后指定其他配置文件

在运行目录下新建conf目录,并创建配置文件 application.yml

java -Dspring.config.additional-location=./conf/ -jar rasp-admin.jar

application.yml文件内容同(src/main/resources/application-prod.yml),并修改其中的mysql、kafka、nacos 配置项(上图中红色框中内容)。

04 ui工程编译运行

条件:nodejs >= v16.15.1

安装编译

进入到ui目录下,执行

npm install

本地启动

npm start

静态文件

npm run build

输出文件在ui/dist

server-1's People

Contributors

xl1605368195 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.