Skip to content

koda-masaru/knowledge-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knowledge

About

Support

Live Demo

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 [email protected] --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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published