Git Product home page Git Product logo

knowledge's Introduction

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 [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

knowledge's People

Contributors

koda-masaru avatar nagodon avatar monota avatar nyoronjp avatar kaakaa avatar makies avatar ikuko avatar ktat avatar h-skm avatar nikukyugamer avatar nokok avatar shyazusa avatar vtjkinoshita avatar yuizho avatar

Watchers

 avatar James Cloos 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.