Skip to content

Commit 1aec20a

Browse files
Merge pull request #5 from pascalgrimaud/improve-home-page
Improve home page
2 parents b4ccfcc + 17c1f68 commit 1aec20a

File tree

7 files changed

+187
-35
lines changed

7 files changed

+187
-35
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
- main
77

88
jobs:
9-
deploy:
9+
build:
10+
name: build
1011
runs-on: ubuntu-latest
11-
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
@@ -18,16 +18,28 @@ jobs:
1818
with:
1919
node-version: 'lts/*'
2020

21-
- name: Install deps
21+
- name: Install dependencies
2222
run: npm ci
2323

2424
- name: Build VitePress site
2525
run: npx vitepress build
2626

27-
- name: Deploy to GitHub Pages
28-
uses: peaceiris/actions-gh-pages@v4
27+
- name: Upload Build Artifact
28+
uses: actions/upload-pages-artifact@v3
2929
with:
30-
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_dir: .vitepress/dist
32-
publish_branch: gh-pages
33-
cname: ''
30+
path: .vitepress/dist
31+
32+
deploy:
33+
name: Deploy to GitHub Pages
34+
runs-on: ubuntu-latest
35+
needs: build
36+
permissions:
37+
pages: write
38+
id-token: write
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

.vitepress/config.mts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,28 @@ export default defineConfig({
99
// https://vitepress.dev/reference/default-theme-config
1010
nav: [
1111
{ text: 'Home', link: '/' },
12-
{ text: 'Examples', link: '/markdown-examples' },
12+
{ text: 'Guide', link: '/docs/guide/getting-started' },
13+
{ text: 'Use Cases', link: '/docs/use-cases' },
1314
],
1415

1516
sidebar: [
1617
{
17-
text: 'Examples',
18+
text: 'Introduction',
1819
items: [
19-
{ text: 'Markdown Examples', link: '/markdown-examples' },
20-
{ text: 'Runtime API Examples', link: '/api-examples' },
20+
{ text: 'Why Seed4J', link: '/docs/guide/why-seed4j' },
21+
{ text: 'Getting Started', link: '/docs/guide/getting-started' },
2122
],
2223
},
24+
{
25+
text: 'Use cases',
26+
items: [],
27+
},
2328
],
2429

2530
socialLinks: [
2631
{ icon: 'linkedin', link: 'https://www.linkedin.com/company/seed4j' },
2732
{ icon: 'x', link: 'https://x.com/seed4j' },
28-
{ icon: 'github', link: 'https://github.com/seed4j/seed4j' }
33+
{ icon: 'github', link: 'https://github.com/seed4j/seed4j' },
2934
],
3035
},
3136
});

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ You will only need to run this command when dependencies change in [package.json
1616
npm install
1717
```
1818

19-
## Local environment
20-
21-
<!-- jhipster-needle-localEnvironment -->
22-
2319
## Start up
2420

25-
<!-- jhipster-needle-startupCommand -->
26-
27-
## Documentation
21+
Launch:
2822

29-
<!-- jhipster-needle-documentation -->
23+
```
24+
npm run docs:dev
25+
```

docs/guide/getting-started.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
title: Getting Started | Guide
3+
---
4+
5+
# Getting Started
6+
7+
## Prerequisites
8+
9+
### Java
10+
11+
You need [Java 21](https://openjdk.java.net/projects/jdk/21/).
12+
13+
### Node.js and npm
14+
15+
[Node.js](https://nodejs.org/) is required to run the development web server and build the project.
16+
Depending on your system, you can install Node.js from source or use a pre-built installer.
17+
18+
### Verify your installation
19+
20+
Open your terminal and run the following commands to verify that Java and Node.js are correctly installed:
21+
22+
```bash
23+
java -version && javac -version
24+
```
25+
26+
```bash
27+
node -v && npm -v
28+
```
29+
30+
Example output:
31+
32+
```
33+
➜ java -version && javac -version
34+
openjdk version "21.0.8" 2025-07-15
35+
OpenJDK Runtime Environment (build 21.0.8+9-Ubuntu-0ubuntu124.04.1)
36+
OpenJDK 64-Bit Server VM (build 21.0.8+9-Ubuntu-0ubuntu124.04.1, mixed mode, sharing)
37+
javac 21.0.8
38+
39+
➜ node -v && npm -v
40+
v22.17.1
41+
11.5.1
42+
```
43+
44+
## Quick Start
45+
46+
Clone the project and navigate into the directory:
47+
48+
```bash
49+
git clone https://github.com/seed4j/seed4j
50+
cd seed4j
51+
```
52+
53+
Start the application:
54+
55+
```bash
56+
./mvnw
57+
```
58+
59+
On Windows
60+
61+
```bash
62+
mvnw.cmd
63+
```
64+
65+
You should see logs like:
66+
67+
```
68+
----------------------------------------------------------
69+
Application 'seed4j' is running!
70+
Local: http://localhost:7471/
71+
External: http://127.0.1.1:7471/
72+
----------------------------------------------------------
73+
```
74+
75+
Now open [http://localhost:7471](http://localhost:7471/) in your browser.

docs/guide/why-seed4j.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Why Seed4J | Guide
3+
---
4+
5+
# Why Seed4J?
6+
7+
Seed4J is a modular code generator that helps developers bootstrap their applications with clarity, structure, and purpose. Whether you're building a proof of concept or a scalable application, Seed4J offers a clean and efficient foundation designed to grow with your project.
8+
9+
## 🧩 Modular Code Generation
10+
11+
Seed4J is built around the idea of generating only what you need, nothing more.
12+
13+
Instead of overwhelming you with a full stack of technologies or bloated code you won't use, Seed4J guides you step-by-step through creating only the features and technical layers your project requires. This modular approach gives you full control over your architecture, helps you stay focused, and keeps your codebase lightweight and maintainable.
14+
15+
As your application evolves, you can add new modules when you need them, not before. No unused code, no technical debt from the start.
16+
17+
## 🛡️ Clean & Hexagonal Architecture
18+
19+
Seed4J is not just about generating code, it’s about generating the right code, based on clean architecture principles.
20+
21+
The entire platform is built on **hexagonal architecture**, encouraging a clear separation between domain logic and infrastructure. This makes your application easier to test, adapt, and evolve over time.
22+
23+
By default, Seed4J promotes clean code practices, organizing your project into well-defined layers. Business logic is kept at the center, while technical concerns like persistence or web APIs are placed at the edges. This architecture is a solid foundation for long-term scalability and quality.
24+
25+
## 🎯 Designed for Developer Experience
26+
27+
From setup to daily development, Seed4J is designed with **developer experience** in mind.
28+
29+
The project includes out-of-the-box tooling, fast startup time, and carefully crafted conventions to make development smoother. No more boilerplate or confusing configuration, you get a ready-to-run app in seconds.
30+
31+
Beyond tooling, Seed4J promotes **craftsmanship**: it encourages writing readable, maintainable, and well-tested code. With features like 100% test coverage, zero duplication, and clean separation of concerns, it’s the kind of foundation developers are proud to build on.
32+
33+
---
34+
35+
Whether you're new to Java or a seasoned backend expert, Seed4J gives you a clean, focused, and professional starting point, ready to evolve with your needs.

docs/use-cases/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Use Cases | Use Cases
3+
---
4+
5+
# Use Cases
6+
7+
Seed4J can be used in different contexts, from quick experiments to real-world applications. This page gives you an overview of the main use cases, with dedicated guides for each.
8+
9+
- 🧪 [Minimal project scaffolding](./use-cases/minimal-project.md):
10+
Generate basic files like `.gitignore`, `README.md`, and license, ideal to start cleanly.
11+
12+
- 🥋 [Java kata project](./use-cases/java-kata.md):
13+
Bootstrap a simple Java app with tests, perfect for TDD sessions or coding katas.
14+
15+
- 🥋 [TypeScript kata project](./use-cases/ts-kata.md):
16+
Quickly set up a TypeScript-based kata environment with linting and tests.
17+
18+
- 🚀 [Real Java backend project](./use-cases/java-backend.md):
19+
Start a fully structured backend with Spring Boot, hexagonal architecture, and Tomcat.
20+
21+
Each guide provides specific steps tailored to that context, so you only generate what you really need.

index.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
---
2-
# https://vitepress.dev/reference/default-theme-home-page
32
layout: home
43

54
hero:
6-
name: 'Seed4J 🌱'
5+
name: 'Seed4J'
76
text: 'Modular code generator with clean architecture'
8-
tagline: Plant the right seed, build on strong roots.
7+
tagline: Plant the right seed 🌱 build on strong roots.
98
actions:
109
- theme: brand
11-
text: Markdown Examples
12-
link: /markdown-examples
10+
text: Get Started
11+
link: /docs/guide/getting-started
1312
- theme: alt
14-
text: API Examples
15-
link: /api-examples
13+
text: Why Seed4J ?
14+
link: /docs/guide/why-seed4j
15+
- theme: alt
16+
text: Use cases
17+
link: /docs/use-cases/
18+
- theme: alt
19+
text: View on GitHub
20+
link: https://github.com/seed4j/seed4j
1621

1722
features:
18-
- title: Feature A
19-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
20-
- title: Feature B
21-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
22-
- title: Feature C
23-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
23+
- icon: 🧩
24+
title: Modular Code Generation
25+
details: Generate only what you need, when you need, nothing more.
26+
- icon: 🛡️
27+
title: Clean & Hexagonal Architecture
28+
details: Based on clean code and hexagonal architecture from the ground up.
29+
- icon: 🎯
30+
title: Designed for Developer Experience
31+
details: Fast setup and high-quality code for productive devs who care about craftsmanship.
2432
---

0 commit comments

Comments
 (0)