This is the Java Front End Admin Application of the EatRoulette project.
To create a plugin you will need :
- An IDE
- A Java project
You will need to create a Java class named EatRoulettePlugin.java with the following content :
public interface EatRoulettePlugin {
void run();
}Add class EatRouletteEntry, it will be the entry point to be launched by our application. This class have to implement the previous interface like this:
public class EatRouletteEntry implements EatRoulettePlugin {
public void run() {
System.out.println("Do your work here ...");
}
}You can now develop your plugins.
To run the program in cli mode you need to add -cli option. Example :
java -jar EatRoulette.jar -cliEatRoulette-cli commands ...
* add [restaurant | type | allergen | characteristic] [data]
* upd [type | allergen | characteristic] id [data]
* dell [restaurant | type | allergen | characteristic] id
* run [plugin-name]
* show [restaurants | types | allergens | characteristics | plugins]
* help #To get this panel
* exit #To quit the application
You can type help at every moment to get this reminder.