Skip to content

Commit

Permalink
feat: update the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel committed Sep 11, 2022
1 parent b228743 commit 237ddfc
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,8 @@

[**Caching data in Node.js application with Redis**](https://github.com/tericcabrel/blog-tutorials/tree/main/node-caching)

[**Configure rate limiting on a Node.js REST API with Express**](https://github.com/tericcabrel/blog-tutorials/tree/node-build-docker)



[**Configure rate limiting on a Node.js REST API with Express**](https://github.com/tericcabrel/blog-tutorials/tree/node-api-rate-limiting)
28 changes: 28 additions & 0 deletions springboot-caching/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
server.port=8030
spring.datasource.url=jdbc:mysql://localhost:3307/product-inventory?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=secret

## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect

# Prevent hibernate to create a hibernate_sequence table
spring.jpa.hibernate.use-new-id-generator-mappings=false

# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto=create
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.dialect.storage_engine=innodb
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true

# Default value is embedded which mean it only applies if you're running and embedded database.
# always is the solution if you're running an external database. (For load .sql file)
spring.sql.init.mode=NEVER

# Logging properties
logging.level.web=INFO

# Log Hibernate SQL queries and parameters
# logging.level.org.hibernate.SQL=DEBUG
# logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
server.port=4656

spring.datasource.url=jdbc:mysql://localhost:3307/hotels?serverTimezone=UTC&useSSL=false
spring.datasource.username=root
spring.datasource.password=secretpswd

## Hibernate properties
spring.jpa.hibernate.use-new-id-generator-mappings=false
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
spring.jpa.open-in-view=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
app.file.upload-dir=./uploads/files
app.file.storage.mapping=file:~/blog-tutorials/springboot-file-upload/uploads/
21 changes: 21 additions & 0 deletions springboot-flyway/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
server.port=4767

spring.datasource.url=jdbc:mysql://localhost:3307/blog?serverTimezone=UTC&useSSL=false
spring.datasource.username=root
spring.datasource.password=secretpswd

## Hibernate properties
spring.jpa.hibernate.use-new-id-generator-mappings=false
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.show-sql=false
spring.jpa.open-in-view=false

## Flyway config
spring.flyway.enabled=true
spring.flyway.url=jdbc:mysql://localhost:3307/blog?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
spring.flyway.user=root
spring.flyway.password=secretpswd
spring.flyway.group=true
spring.flyway.sql-migration-prefix=V
spring.flyway.sql-migration-separator=__
spring.flyway.sql-migration-suffixes=.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
server.port=8933

spring.datasource.url=jdbc:mysql://localhost:3307/moviedb?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=secret

## Hibernate properties
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
spring.jpa.hibernate.use-new-id-generator-mappings=false
spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=false
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.dialect.storage_engine=innodb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
server.port=8933

spring.datasource.url=jdbc:mysql://localhost:3307/moviedb?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=secret

## Hibernate properties
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
spring.jpa.hibernate.use-new-id-generator-mappings=false
spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=false
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.dialect.storage_engine=innodb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.profiles.active=@currentProfile@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

11 changes: 11 additions & 0 deletions springboot-validation/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
server.port=4656

spring.datasource.url=jdbc:mysql://localhost:3307/hotels?serverTimezone=UTC&useSSL=false
spring.datasource.username=root
spring.datasource.password=secretpswd

## Hibernate properties
spring.jpa.hibernate.use-new-id-generator-mappings=false
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
spring.jpa.open-in-view=false

0 comments on commit 237ddfc

Please sign in to comment.