Coder Social home page Coder Social logo

var-http's Introduction

Var-HTTP

This project is named after the Norse god Vár, being the god of oaths and agreements (see here).


Maintained by the PSQR team.

Description

Var-HTTP is a lightweight annotation-based controller framework for Java, based on HTTP servlets. It also contains a simple servlet server based on the openjdk HTTP server, but is compatible with other servlet containers as well.

Related Projects

Var is part of the OSS Suite developed and maintained by the PSQR Team. Find below other projects of the suite :

  • ODINJector, a Java injection library
  • Valqueries, a Java ORM for relational databases
  • Valqueries CQL, a Java ORM for Cassandra
  • RAN, a Java library for automatically mapping objects to key/value structures

Getting Started

The simplest way to get started is to declare a dependency on Var-HTTP in your own Java project, using your preferred dependency management tool. Var artifacts are currently hosted on GitHub Packages. Read more on how to work with GitHub packages here.

Please note that GitHub Packages requires authentication

For Gradle :

dependencies {
    implementation 'io.var-http:var-core:1.0.1-2'
}

For Maven :

<dependency>
    <groupId>io.var-http</groupId>
    <artifactId>var-core</artifactId>
    <version>1.0.1-2</version>
</dependency> 

You should be ready to get going now ! To carry on, have a look at the var-core documentation.

Build from source

Var-HTTP uses Gradle as build tool. Its subproject "var-test" depends on another open source project called ODINjector, available here. ODIN is currently distributed using GitHub Packages, and thus requires authentication from apps to be able to access the package. Therefore, you will have to grant gradle the right to authenticate to GitHub using your account to be able to build the project fully.

Note If you do not want to add a personal access token to GitHub, you can also disable the subproject var-test. Simply comment the line mentioning "var-test" in the file settings.gradle.

Adding a GitHub personal access token for Gradle

Start by logging into your GitHub account, go to Settings > Developer Settings -> Personal access tokens. Here, click on "generate new token". Gradle only needs to access GitHub packages, so you only have to toggle "read packages". Copy the generated token. Go to your gradle home folder (on linux, it's located in ~/.gradle/) and edit the file gradle.properties. Add these two lines :

gpr.user=<your GitHub username>
gpr.key=<the token issued by github>

Build

To build it locally, start by cloning the repo. Once done, simply run ./gradlew build to build the project.

Contributing

For contribution guidelines, see CONTRIBUTING.

License

Var-HTTP is licensed under the terms of the MIT License.

var-http's People

Contributors

nut-neek avatar anton-larsen-persequor avatar andrepersequor avatar niels-psqr avatar pvutran-psqr avatar mawagusura-psqr avatar oscar-b avatar emanuel-persequor avatar wrigleyster avatar

Stargazers

 avatar

Watchers

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