@@ -12,7 +12,8 @@ Jangular is a comprehensive starter kit that combines the power of Spring Boot f
12
12
13
13
- ** Full-Stack Solution** : Seamlessly integrates Spring Boot backend with Angular frontend
14
14
- ** Authentication & Authorization** : Pre-configured security using Spring Security and JWT tokens
15
- - ** Database Integration** : MySQL database support with JPA/Hibernate
15
+ - ** Database Flexibility** : Support for MySQL, PostgreSQL, and MSSQL databases
16
+ - ** Database Integration** : Database support with JPA/Hibernate
16
17
- ** Database Migration** : Automated database schema management with Flyway
17
18
- ** CLI Tool** : Simple command-line interface for project initialization
18
19
- ** Ready-to-Use Components** : Login, registration, and dashboard components
@@ -29,7 +30,7 @@ Jangular is a comprehensive starter kit that combines the power of Spring Boot f
29
30
- Spring Data JPA
30
31
- JWT Authentication
31
32
- Flyway Migration
32
- - MySQL
33
+ - MySQL, PostgreSQL, or MSSQL support
33
34
- Lombok
34
35
- Maven
35
36
@@ -56,7 +57,7 @@ Jangular is a comprehensive starter kit that combines the power of Spring Boot f
56
57
- Java 21 or higher
57
58
- Node.js 16 or higher
58
59
- npm or yarn
59
- - MySQL 8.0 or higher
60
+ - MySQL 8.0 or higher, PostgreSQL, or MSSQL
60
61
- Maven 3.6 or higher
61
62
62
63
### Installation
@@ -80,6 +81,19 @@ npm run start:backend
80
81
npm run start:frontend
81
82
```
82
83
84
+ #### Interactive CLI Setup
85
+
86
+ When initializing a new project, the CLI will prompt you for configuration options:
87
+
88
+ ```
89
+ Creating new JAngular project: my-project
90
+ ✔ Enter base package name: com.example.myproject
91
+ ✔ Select database type: [MySQL/PostgreSQL/MSSQL]
92
+ ✔ Enter database name: my_project_db
93
+ ✔ Enter database username: devuser
94
+ ✔ Enter database password: ********
95
+ ```
96
+
83
97
#### CLI Command Reference
84
98
85
99
``` bash
@@ -144,6 +158,43 @@ jangular-project/
144
158
└── README.md # Project documentation
145
159
```
146
160
161
+ ## Database Configuration
162
+
163
+ Jangular supports multiple database systems:
164
+
165
+ ### MySQL Configuration
166
+
167
+ ``` yaml
168
+ spring :
169
+ datasource :
170
+ url : jdbc:mysql://localhost:3306/your_database_name
171
+ username : your_username
172
+ password : your_password
173
+ driver-class-name : com.mysql.cj.jdbc.Driver
174
+ ` ` `
175
+
176
+ ### PostgreSQL Configuration
177
+
178
+ ` ` ` yaml
179
+ spring :
180
+ datasource :
181
+ url : jdbc:postgresql://localhost:5432/your_database_name
182
+ username : your_username
183
+ password : your_password
184
+ driver-class-name : org.postgresql.Driver
185
+ ` ` `
186
+
187
+ ### MSSQL Configuration
188
+
189
+ ` ` ` yaml
190
+ spring :
191
+ datasource :
192
+ url : jdbc:sqlserver://localhost:1433;databaseName=your_database_name
193
+ username : your_username
194
+ password : your_password
195
+ driver-class-name : com.microsoft.sqlserver.jdbc.SQLServerDriver
196
+ ` ` `
197
+
147
198
## Contributing to Templates
148
199
149
200
Jangular uses Git submodules for the frontend and backend templates:
@@ -293,6 +344,7 @@ changePassword(id: number, oldPassword: string, newPassword: string): Observable
293
344
- Customize UI components to match your brand identity
294
345
- Add additional Angular modules and components
295
346
- Extend authentication with social login providers
347
+ - Configure different database providers based on your infrastructure requirements
296
348
297
349
# # Development Workflow
298
350
0 commit comments