Git Product home page Git Product logo

zefraweb's Introduction

ZefraWeb

●基于java servlet编写的个人网站

# 作者网站

●V1.1主要功能

①:随机新闻
②:编程文章分享
③:编程库分享
④:书籍分享

●项目运行

一.安装第三库

①:在项目中的./webapp/js/dependency/文件夹下添加如下依赖库:
base64.js·中文转码
FileSaver.js-文件下载
vue.js·动态html渲染
②:在项目的./webapp文件夹下添加如下依赖库,命名为文件夹:
element-ui-集合ui(https://element.eleme.cn/#/zh-CN/component/cascader)
codemirror-代码块渲染(https://codemirror.net)

二.编译准备

①:推荐使用idea打开项目
②:需要先安装java,python3.9,mysql的系统环境
③:打开项目中的mybatis-config.xml文件,配置mysql的用户名和密码
④:把./webapp/data/下的backups.sql数据库文件导入到系统的mysql中,数据库命名为zefraweb,执行命令mysql -u 用户名 -p zefraweb < /backups.sql
⑤:打开项目中的data.properties文件,配置如下属性:
1.database.pyUrl: 系统上python的起始命令
2.database.godMode: 为true表示网页模式下开启修改数据库的权限
3.database.npath: 表示./news/文件夹所在的绝对路径
⑥:打开项目中toos.java文件,找到mode属性,如果是服务器运行,值修改为Mode.Server;如果是liunx运行,属性liunx值改为true

三.本地部署

①:idea右击项目—>run maven—>tomact7:run启动项目
②:即可在本地如下地址打开网页:(http://localhost:8027/ZefraWeb/index.html)

四.Liunx服务器部署

①:修改项目的toos.js文件中的formPathOrigin属性和formPath属性的地址为服务器对应的公网地址
②:idea单机build—>build Artifacts项目打包成.war文件
③:服务器安装tomact,把.war包放入tomact./webapps/文件夹下
④:进入tomact./bin文件夹下,执行sh startup.sh命令运行项目,默认开放在8080端口
⑤:即可在如下公网地址打开网页:http://公网ip:8080/ZefraWeb/index.html#

zefraweb's People

Contributors

yspplayer 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.