Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tolyo/javalin-boilerplate
Javalin boilerplate
https://github.com/tolyo/javalin-boilerplate
Last synced: about 2 months ago
JSON representation
Javalin boilerplate
- Host: GitHub
- URL: https://github.com/tolyo/javalin-boilerplate
- Owner: tolyo
- Created: 2023-09-14T15:26:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-22T10:10:53.000Z (5 months ago)
- Last Synced: 2024-07-22T12:14:15.531Z (5 months ago)
- Language: Java
- Homepage:
- Size: 536 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JAVALIN BOILERPLATE
This is a Javalin starter POC template, aiming to provide just enough modern front-end tooling to develop interactive web-applications in modern Java. Inspirations are taken from Apache Wicket, JSF, and Vaadin, but keeping in line with minimalistic approach of Javalin. [AngularTS](https://github.com/Angular-Wave/angular.ts) is used for front-end routing and form processing.
## Software Requirements
To run this project, ensure you have the following software installed:
- **GoLang**: Version 1.20 or later
- **Java**: Version 21 or later
- **Node.js**: Version 18 or later
- **Docker**: Version 27 or later### Getting started
Set up `goose` and `npm` via:
```bash
make setup
```Start `db` container:
```bash
docker compose up -d
```Run migration:
```bash
make db-up
```All set!
---
### Development mode
For interactive live-reload, you will need to run `browsersync` in a separate terminal:
```bash
make dev
```
and then run `Debug Java` > `src/main/java/Main.java` in VSCode or Eclipse for automatic class reloads. If you don't need live-reload:
```bash
make run
```### Starter points
- `CalculatorController.java` - sample of reactive UI
- `ProductController.java` - sample CRUD