Skip to content

Commit 7bee348

Browse files
committed
update documentation for database properties
1 parent fd58125 commit 7bee348

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

docs/pages/javatmp-app-starter-project-version.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,19 @@ check that by login to mysql and run the following command:
351351

352352
`mysql > show tables;`
353353

354+
Update Spring boot `application.properties` file in `.\JavaTMP-App-Starter\src\main\resources` by
355+
updating the following properties by your username and password and database names:
356+
```
357+
spring.datasource.url=jdbc:mysql://localhost:3306/appdb?zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&autoReconnect=true&autoReconnectForPools=true&allowPublicKeyRetrieval=true
358+
spring.datasource.username={{{ Your database username }}}
359+
spring.datasource.password={{{ Your database password }}}
360+
```
361+
362+
Run JavaTMP from your command line or import it from your Java IDE as a Maven Project:
363+
```
364+
mvn spring-boot:run
365+
```
366+
354367
### JavaTMP Apps Database Tables
355368
The database schema contains the following tables:
356369
* activity. Contains data related to all requests of the public or registered users.

readme.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,24 @@ You can run the following commands to compile and generate resources:
3939
```
4040
npm install (Will install all Node.js dependencies mentioned in package.json file)
4141
gulp (Re-generate all front-end dependencies)
42+
```
43+
44+
Prepare Your MySql Database server as provided in the [Database Configuration](http://help.javatmp.com/pages/javatmp-app-starter-project-version#preparing-oracle-mysql-database-management-system)
45+
then update Spring boot `application.properties` file in `.\JavaTMP-App-Starter\src\main\resources` by
46+
setting the following properties by your username and password and database names:
47+
```
48+
spring.datasource.url=jdbc:mysql://localhost:3306/appdb?zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&autoReconnect=true&autoReconnectForPools=true&allowPublicKeyRetrieval=true
49+
spring.datasource.username={{{ Your database username }}}
50+
spring.datasource.password={{{ Your database password }}}
51+
```
52+
53+
Run JavaTMP from your command line or import it from your Java IDE as a Maven Project by:
54+
```
4255
mvn spring-boot:run (run a development version)
56+
```
57+
58+
Run JavaTMP from your command line as a standalone java project by:
59+
```
4360
maven clean package (clean and generate war file in ./target folder)
4461
java -jar -Dserver.port=80 target/JavaTMP-App-Starter-0.0.${version}.war
4562
```

0 commit comments

Comments
 (0)