Code Monkey home page Code Monkey logo

javalin.github.io's Introduction

javalin.io Chat at https://discord.gg/sgak4e5NKv License

This repo contains the source code for javalin.io.

Pull requests for adding tutorials and fixing errors in docs are very welcome.

Quickstart

This website is built with Jekyll. To run it locally, you need to have Ruby and Bundler installed.

# Install dependencies
bundle install
# Run the server
bundle exec jekyll serve --port 4000 --future --incremental

Alternatively, you can use Docker to run the site without installing Ruby and Bundler.

# Build the Docker image
docker build -t javalin-web .
# Run the Docker container
docker run -p 4000:4000 -v ${PWD}:/app javalin-web

The site will be available at http://localhost:4000

The contributing guidelines have additional set-up information.

Contributing

Contributions are welcome! Please read the contributing guidelines before submitting a pull request.

javalin.github.io's People

Contributors

baumgarb avatar bseib avatar c-shubh avatar corlaez avatar david-wg2 avatar elwin013 avatar hanbings avatar jorunfa avatar mosrod avatar mvysny avatar nicole-git avatar northcoder-repo avatar playacem avatar protoss78 avatar psychotherapistsam avatar ralphsteinhagen avatar raniagus avatar saikai avatar sbdchd avatar seckin206 avatar shpota avatar soltaufintel avatar spullara avatar stuatgit avatar sukolenvo avatar tareqk avatar the-funk avatar tipsy avatar xpepper avatar zugazagoitia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

javalin.github.io's Issues

[PLUGIN REPORTS] - Cors Plugin

!!! The comments on this issue are reflected on https://javalin.io/plugins !!!

This is intended as safety mechanism to warn other users if a plugin is not behaving as it should.

Please be elaborate in your reports, and explain why there is a problem with the plugin.

Hello World not working

I like Javalin and try to get the Hello World going. According to the doc only javalin-2.5.0.jar is sufficient.

However, when I run the example I get the error:

run:
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at io.javalin.Javalin.<clinit>(Javalin.java:54)
	at javalin.HelloWorld.main(HelloWorld.java:7)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 2 more
C:\Users\bergtwvd\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)

I added slf4j-simple-1.7.25.jar to the CLASSPATH, but this did not make any difference.

Using JDK 1.8

-- TvdB

[PLUGIN REPORTS] - Micrometer

!!! The comments on this issue are reflected on https://javalin.io/plugins !!!

This is intended as safety mechanism to warn other users if a plugin is not behaving as it should.

Please be elaborate in your reports, and explain why there is a problem with the plugin.

[PLUGIN REPORTS] - JavalinVue

!!! The comments on this issue are reflected on https://javalin.io/plugins !!!

This is intended as safety mechanism to warn other users if a plugin is not behaving as it should.

Please be elaborate in your reports, and explain why there is a problem with the plugin.

Who's using Javalin?

I added a "Who's using Javalin?" section on the webpage. The initial list is based on publicly available information from GitHub/Gitlab, Maven, and user websites.

If you want your company added to the list, please comment on this issue.

Heroku tutorial's future

Heroku will stop offering a free tier starting 2022-11-28.

Starting October 26, 2022, we will begin deleting inactive accounts and associated storage for accounts that have been inactive for over a year.

Starting November 28, 2022, we plan to stop offering free product plans and plan to start shutting down free dynos and data services. We will be sending out a series of email communications to affected users.

Our Heroku tutorial should be migrated to a different provider, ideally not requiring a credit card for easier testing for people without one or those who do not want to provide their credit card.

Add our logo and link to the Sponsors page

We're very pleased to be able to sponsor Javalin. We've just finished converting our app from Spark to Javalin.

The sponsorship is from my company, Barbary Software. However, we'd prefer the logo to be that of our main product, Feature Upvote.

Name: Feature Upvote
URL: https://featureupvote.com/
Logo: Our logos are here. You can select the one that works best for you.

Let me know if you need more info.

Handler groups not compiling

I suspect the problem here may be related to my particular configuration, but the handler groups example code fails to compile for me. The name app methods like path and get and post are not found, it does not seem to reference an implicit `app.

I'm using the JDK for Java 8, does this code depend on a newer version of Java?

Tutorial Idea - Simple Tutorial

Hi!

Javalin seems very interesting and I would like to learn more about it.

I am quite to programming (work in engineering) and APIs. It would be nice to have a very simple (for beginners with only the very basics of programming) Java-based tutorial of how to use Javalin. I think the tutorials are great but quite complex for complete dummies.

For example, a small Java-program that reads the temperature in London (or any other information) of one website and prints it to the screen. Just something I could copy and paste directly in Eclipse and run it. In this way, I could get an easy start with Javalin.

I think such example would help many newcomers to start with Javalin.

Thank you very much!

Write a better "Simple Kotlin Example" tutorial.

Current one is aimed at Java devs and was written the first day I tried out Kotlin. We should make one that's more to the point, just for Kotlin users. Rename the old one to "Kotlin for Java developers" or something.

Highlight selected page in menu

Currently, when we're browsing site, we don't know which page is selected from the menu:

obraz

obraz

Would be nice if selected page had some indicator, like e.g.:

obraz

User Session management?

I see there are function about Session in the Context, but it is not clear to me how you would create a session, store/retrieve data from the user session, delete the session, renew the session, expire ...

By the way, is there a user group like a Google Group or else ??? or Github issue is THE user group ?
Thanks

Include both Kotlin and Java versions on the Official Tutorials

[This issue is more of a reference of the one I made on the main Javalin Repo, it's just that this one's on the right place now, see this]

Currently what we have with the docs are two separated categories for the tutorials, one for Java and one for Kotlin:
image

I think it would be best if we only had one column that tackles each topic separately, but includes both the "Java" and "Kotlin" version on the same page.
image
Something like this one that toggles the code snippet into the version chosen by the user. This way, users who prefer a certain flavor can easily have access to tutorials that are fitted to what they currently know. Although Kotlin and Java do share a lot of similarities with each other, it would be nice to ease the burden to new users of the framework of having to learn and understand the other, just to be able to try things out. ๐Ÿ˜„

Can't display Chinese.

  1. Set "Properties > Resource > Text file encoding " to UTF-8
  2. Set the "properties" of "project.build.sourceEncoding", "maven.compiler.encoding" to UTF-8, in pom.xml

    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <maven.compiler.encoding>UTF-8</maven.compiler.encoding>

Still can not display the Chinese word?

Possible additional info for Get Started doc using Kotlin Gradle.

Describe the bug

Ruby dev. New to Kotlin. Prototyping business need.
Using Intellij created a new Kotlin project using Gradle build with starting code.
Cut & Pasted the Javalin dependency for Gradle as described in Getting Started.
Received formatting errors from Intellij IDE.
Seems i needed to format as: implementation ("io.javalin:javalin-bundle:4.6.4")

Being my first Kotlin project (ok 2nd after hello world), maybe something i did setting project options (yes it was)?
Don't know if anyone else may hit this issue and if new to Gradle (like me) might get stuck for a few.

P.S. (added later) I just noticed/learned that u show the Groovy Gradle format. And i am using the Kotlin Gradle format. So i changed the title of this.

Coming from Ruby/Sinatra, like what i see in docs... thx...

Newbie issue: import io.javalin.ApiBuilder.*

Hello,

This was a small frustration I had following the tutorial, no explicit mention of what imports were required to remove errors when building the project. I went to the source code to fix the problem, but intellij did not know where to import the get/post/patch methods from!

It may make it easier for other beginners to test the project.

[PLUGIN REPORTS] - GraphQL

!!! The comments on this issue are reflected on https://javalin.io/plugins !!!

This is intended as safety mechanism to warn other users if a plugin is not behaving as it should.

Please be elaborate in your reports, and explain why there is a problem with the plugin.

Sponsors on website

@barbarysoftware thank you for your donation! Since you're on the $50 tier, you can have your logo present in the "Sponsors" section of the https://javalin.io, as well as a link to your website. Currently, this section doesn't exist (since you're the first $50 sponsor), but if you add your logo/link to this issue, I will create a section for it on the website :)

[PLUGIN REPORTS] - JavalinMithril

!!! The comments on this issue are reflected on https://javalin.io/plugins !!!

This is intended as safety mechanism to warn other users if a plugin is not behaving as it should.

Please be elaborate in your reports, and explain why there is a problem with the plugin.

[PLUGIN REPORTS] - RouteOverview

!!! The comments on this issue are reflected on https://javalin.io/plugins !!!

This is intended as safety mechanism to warn other users if a plugin is not behaving as it should.

Please be elaborate in your reports, and explain why there is a problem with the plugin.

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.