Marine

A web framework over sparkjava

License

License

Harium Commercial License
GroupId

GroupId

com.harium.marine
ArtifactId

ArtifactId

core
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Marine
A web framework over sparkjava

Download core

How to add to project

<!-- https://jarcasting.com/artifacts/com.harium.marine/core/ -->
<dependency>
    <groupId>com.harium.marine</groupId>
    <artifactId>core</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.harium.marine/core/
implementation 'com.harium.marine:core:1.1.1'
// https://jarcasting.com/artifacts/com.harium.marine/core/
implementation ("com.harium.marine:core:1.1.1")
'com.harium.marine:core:jar:1.1.1'
<dependency org="com.harium.marine" name="core" rev="1.1.1">
  <artifact name="core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.harium.marine', module='core', version='1.1.1')
)
libraryDependencies += "com.harium.marine" % "core" % "1.1.1"
[com.harium.marine/core "1.1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.sparkjava : spark-core jar 2.9.3
org.slf4j : slf4j-simple jar 1.7.25

test (1)

Group / Artifact Type Version
junit : junit jar 4.13.1

Project Modules

There are no modules declared in this project.

Marine

A web framework built over sparkjava Maven Central

Maven

<dependency>
    <groupId>com.harium.marine</groupId>
    <artifactId>core</artifactId>
    <version>1.1.0</version>
</dependency>

Usage

Example using dotenv.

...
public class Main {

    public static void main(String[] args) {
        System.out.println("Starting Server");

        String host = Env.get("HOST");
        System.out.println(host);

        Web.port(Integer.parseInt(Env.get("PORT")));
        Web.host(host);

        // Defining public resources
        Web.staticFileLocation("/public");

        // Register Web Modules
        Web.register(HealthCare.class); // Using class
        Web.register(() -> get("/hello", (req, res) -> "Hello World")); // Using instance
        // Init Web Modules
        Web.init();
    }
}

Need more information?

See examples

com.harium.marine

Harium

Versions

Version
1.1.1
1.1.0
1.0.0