Skip to content

world-bit/knowledge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knowledge

Build Status

About

Support

Live Demo

Deploy to Heroku

Deploy

How to initial set up

vulnerability testing

  • vulnerability testing with VAddy
VAddy logo

How to development

  • Clone this repository your local machine.
  • From version 2, frontend module and backend module are divided.
    • The backend module is the same as version 1.
    • Therefore, starting only the backend module will have the same as version 1.
  • In version 2 development,
  • Start up in frontend, backend, and reverse proxy by Nginx.
    • Start with docker & docker-compose.
  • After starting all the modules, you can access to http://localhost for development.

How to start Frontend

install dependencies

$ docker-compose run --rm frontend npm install --no-optional
$ docker-compose run --rm frontend npm run afterinstall
  • If the following error occurs, execute the this command
    • PhantomJS not found on PATH
$ docker-compose run --rm frontend npm install phantomjs-prebuilt@2.1.16 --ignore-scripts

start frontend with hot reload at localhost:8081

$  docker-compose run --rm -p 8081:8081 frontend npm run dev
  • If the following error occurs, execute the this command
    • Module build failed: Error: ENOENT: no such file or directory, scandir '/usr/src/node_modules/node-sass/vendor
$ docker-compose run --rm frontend npm rebuild node-sass --force

How to start Backend

start backend

$ docker-compose run --rm maven mvn clean package
$ docker-compose run --rm -p 8080:8080 tomcat
  • Otherwise, Run the following classes in IDE such as Eclipse or IntelliJ IDEA

  • org.support.project.knowledge.Launch

How to start Reverse proxy

$ docker-compose run --rm -p 80:80 nginx 

How to build release package

Frontend

build for production with minification

$  docker-compose run --rm frontend npm run build
  • Fronted module will generated to "frontend/dist" directory.
  • Next, please copy this module's file to backend/src/main/webapp
  • Then, Then you will run the build of Backend.

Backend

Build war (web application archive)

$ docker-compose run --rm maven mvn clean package
  • 'knowledge.war' is builded in backend/target directory when this command finished succeed

About

Free Knowledge Management System

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 71.2%
  • HTML 17.8%
  • JavaScript 7.4%
  • CSS 1.9%
  • Vue 1.7%
  • PHP 0.0%