Giter Club home page Giter Club logo

diderot's Introduction

Diderot

A tool to help designing web routes, with plugin system.

Codacy Badge

Screenshots

The main window with generated web documentation Main window with generated web documentation

Build instructions

Compile

mkdir build
javac -cp src/ -d build/ src/Main.java

Create Jar file

cd build
jar cfe ../Diderot.jar Main .
cd ..

Execute Jar file

java -jar Diderot.jar

Generate javadoc

cd src
javadoc -d ../diderot_docs -subpackages . Main.java -link http://docs.oracle.com/javase/8/docs/api/

If you want to see private stuff, add the -private command line parameter.

Plugin

Diderot supports 3 types of plugins:

  • Import plugin : Used to create routes/project from something (a source code for instance)
  • Export plugin : Used to generate something (source code for a website, documentation, ...) from routes/project
  • Edit plugin : Used to edit the current project (refactoring on route for example)

Plugin installation

Get the .jar file of your plugin, and place it in the plugins directory. Il will be loaded on Diderot's startup. Important: please note that Diderot does not control what a plugin does. Be sure to do not use a plugin that you do not trust.

Create a plugin

Disclaimer: this is section covers only the basics of Diderot plugin development. If you want to know more, read the docs/sources. (have a look on model and plugin packages)

Please note that this project is still in development (no release released yet), so you should expect changes in class interfaces.

For each plugin type, there is an interface to implement, plus a base plugin interface that define general methods to get plugin's name, authors, ect. As each plugin interfaces extends this base plugin interface, you do not have to explicitly implement it. If you want to create a plugin with both import and export capabilities, feel free to do so, a plugin is not restricted to one type only.

Create a class for you plugin (We recommend the following package convention: internetDomainName.CompanyOrAuthor.pluginName) and write your code.

In order to compile your plugin, you first need the Diderot.jar file, which contains plugin interfaces used by your plugin. Important: you must not build a 'fat jar' containing Diderot.jar or any classes it contains, or it will causes problems.

Compile your plugin:

javac myPlugin.java -cp .:Diderot.jar

Create your .jar plugin:

jar cf myPlugin.jar myPlugin.class

diderot's People

Contributors

josephcaillet avatar

Watchers

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