Git Product home page Git Product logo

modulo's Introduction

Modulo

Build App maven-central Release

License Stars Forks


Table of contents

๐Ÿญ Description

What is modulo...

๐Ÿš€ Getting started

How to use Modulo ?

Step 1:

  • Create a new java project in your favorite IDE.
  • Add the modulo-api dependency to your project.
    • Manually with your IDE.
    • With Maven add the following dependency to your pom.xml:
      <dependency>
        <groupId>com.chillycheesy</groupId>
        <artifactId>modulo-api</artifactId>
        <version>BINKS-0.3.0</version>
      </dependency>
    • With Gradle add the following dependency to your build.gradle: (recommended)
      dependencies {
        implementation 'com.chillycheesy:modulo-api:BINKS-0.3.0'
      }

Step 2:

  • Create a new java class in your project. The class must inherit from the Module class. This will become your main class.
  • Implement the needed methods.
    package com.chillycheesy.modulo;
    
    import com.chillycheesy.modulo.modules.Module;
    
    public class HelloModule extends Module {
        
        @Override
        protected void onLoad() {
            info("HelloModule is loaded");
        }
    
        @Override
        protected void onStart() {
            info("HelloModule is started");
        }
        
        @Override
        protected void onStop() {
            info("HelloModule is stopped");
        }
    
    }

Step 3:

  • Create the module.yml file in your project resources folder.
    • The module.yml file must contain the following information:
      name: HelloModule
      description: This is a hello module
      version: 1.0.0
      main: com.chillycheesy.modulo.HelloModule # The main class of the module
      authors:
        - ChillyCheesy
      dependencies: [] # Optional
      softDependencies: [] # Optional

Step 4:

  • Download the modulo-server jar file.
  • Build your project and drop it in the modules folder inside your server folder.
  • run the server with the following command:
    $> java -jar modulo-server.jar

Step 5:

Enjoy ๐ŸŒถ ๐Ÿง€ !

If you use gradle, you can use the ModuloGradleApplication.

๐Ÿ“• How to use it

See the Java documentation page here.
You can also check the wiki.

๐ŸŒถ ๐Ÿง€ See also

              ..----.._    _
            .' .--.    "-.(O)_
'-.__.-'"'=:|  ,  _)_ \__ . c\'-..
            ''------'---''---'-"
            Despelette was here !

modulo's People

Contributors

aymerichenouille avatar bankaert-benoit avatar vaniscotte-geoffrey avatar vulcainos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vulcainos

modulo's Issues

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.