JSWEBSERVER is a very light web server app that can be compiled in Java 1.8 or Java 16, it is based on SCALATRA and GRAALVM with JavaScript engine.

Prerequisites to compile jswebserver:
- Java JDK 1.8 or 16 (https://adoptopenjdk.net/)
- SBT (https://www.scala-sbt.org/download.html)
- Scala (https://www.scala-lang.org/download/scala2.html)

After installing prerequisites, download jswebserver sources:
https://sourceforge.net/p/jswebserver/code/ci/master/tree/

or you may use git:
git clone ssh://laranikal@git.code.sf.net/p/jswebserver/code jswebserver-code

To Build & Run:
$ cd jswebserver
$ sbt
> jetty:start
> browse
If browse doesn't launch your browser, manually open http://localhost:8080/ in your browser.

Enjoy!! :)

Features

  • Web server side scripts are implemented in JavaScript
  • You can use AJAX technology, see the example in the default page
  • It is using GRAALVM JS so, it is possible to call JAVA libraries like JDBC
  • It is implemented in only one Java jar file.

Project Samples

Project Activity

See All Activity >

Follow jswebserver

jswebserver Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of jswebserver!

Additional Project Details

Registered

2021-04-19