Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pepeul1191/spring-boot-aprendiendo

Aprendiendo Spring Boot
https://github.com/pepeul1191/spring-boot-aprendiendo

Last synced: about 1 month ago
JSON representation

Aprendiendo Spring Boot

Awesome Lists containing this project

README

        

### Ejectuar el proyecto como hot reload:

Ejecutar en una terminal:

$ ./gradlew bootJar --continuous

Y en otra terminal:

$ ./gradlew bootRun

### Migraciones

# .env
# Configuración de la base de datos MySQL y otros
DATABASE_URL="mysql://root:[email protected]:3306/gym_db"
ENV="local"

Migraciones con DBMATE - accesos/sqlite3:

$ npm run dbmate:new <>
$ npm run dbmate:up
$ npm run dbmate:rollback

## Diagrama de Clases

```plantuml
@startuml
package Accesos <> {
class User {
- id: INT
- user: STRING {50}
- password: STRING {50}
- activation_key: STRING {25}
- image_url: STRING {40}
- reset_key: STRING {25}
- created_at: DATETIME
- updated_at: DATETIME
- user_state_id: INT {FK}
}

class UserState {
- id: INT
- name: STRING {15}
}

class Role {
- id: INT
- name: STRING {25}
}

class UserRole {
- id: INT
- user_id: INT {FK}
- role_id: INT {FK}
}
}

package Admin <> {
class Employee {
- id: INT
- user: STRING {50}
}
}

User -- UserState
User --* UserRole
Role --* UserRole
User -- Employee

@enduml

---

## Fuentes:

+ https://medium.com/@calism222/how-enable-auto-reload-spring-boot-gradle-kotlin-continuous-build-5edd23558ae3