Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
458 commits
Select commit Hold shift + click to select a range
ccc7af3
Merge pull request #118 from JonayKB/113-remove-own-user-from-user-se…
JonayKB Apr 23, 2025
c25e68f
feat(Cache): Added cache and reset cache every day
JonayKB Apr 24, 2025
81e0d7e
feat(Security): Added https
JonayKB Apr 24, 2025
24e3bf3
test(Cache): Added tests
JonayKB Apr 24, 2025
8afcb3f
feat(Post): Now cna like and unlike posts
JonayKB Apr 24, 2025
d88f3fc
Merge pull request #126 from JonayKB/120-add-https
rabgonzalez Apr 24, 2025
6898817
Merge pull request #125 from JonayKB/119-add-caching-on-grahps-endpoints
rabgonzalez Apr 24, 2025
c645047
test(User): Added tests
JonayKB Apr 25, 2025
50feb02
Merge branch 'main' into 123-like-a-post
JonayKB Apr 25, 2025
fbe34ca
Merge pull request #127 from JonayKB/123-like-a-post
JonayKB Apr 25, 2025
92a7afe
fix(User): Added follower regex
JonayKB Apr 25, 2025
4ec8d1a
Merge pull request #128 from JonayKB/121-add-search-regex-in-user-fol…
JonayKB Apr 25, 2025
bea04f5
feat(Comment): Added comments
JonayKB Apr 29, 2025
8ddec25
test(Comment): Added Comment Domain test
JonayKB Apr 30, 2025
1b3b7ff
fix: Fixed tests
JonayKB Apr 30, 2025
3a69bb9
feat(Many): follow check, activity form complete and posts started, c…
rabgonzalez Apr 30, 2025
4db98ee
feat(Many): new components, styles moved to a json and new screens
rabgonzalez May 2, 2025
2387f0c
feat(ActivityDetailsBox, AddButton): new components
rabgonzalez May 2, 2025
9bd435b
feat(Activity): activity divided in components and styles added
rabgonzalez May 2, 2025
051ca42
feat(Activities): components modification
rabgonzalez May 2, 2025
01abefd
test(Comment): Added service tests
JonayKB May 3, 2025
1fdb77e
test(Comment): Removed public
JonayKB May 3, 2025
6d961d8
Merge pull request #132 from JonayKB/122-comment-on-a-post
JonayKB May 3, 2025
ca73389
feat: Get Remainign times of activity and get isfollowing user
JonayKB May 6, 2025
4c4129d
test: fixed tests
JonayKB May 6, 2025
3209d51
refactor(TimeRates): Created class to calcualte timerates
JonayKB May 6, 2025
878d88c
fix(User): Fixed issues
JonayKB May 6, 2025
11353fe
test(Integration): First integration test
JonayKB May 6, 2025
fa82a3c
Merge pull request #134 from JonayKB/131-add-creator-property-to-the-…
JonayKB May 6, 2025
3c367ba
fix(User): Added email
JonayKB May 7, 2025
a1172d7
Merge pull request #135 from JonayKB/131-add-creator-property-to-the-…
JonayKB May 7, 2025
b063c6b
feat(Users and Activities): new implementations
rabgonzalez May 7, 2025
56514b8
feat(CommunityEvent): Created little base
JonayKB May 7, 2025
0b7ca7d
feat(Search): navigations solved
rabgonzalez May 7, 2025
6db2ac7
refactor(): reload method removed from view
rabgonzalez May 7, 2025
d79103a
refactor(): screens names refactored
rabgonzalez May 8, 2025
2231fed
feat(FollowListScreen): searchbar for followers and following added
rabgonzalez May 8, 2025
8d068d0
feat(ProfileFormScreen): profile form added
rabgonzalez May 8, 2025
caa129a
feat(CommunityEvent): Added image and V2 and V3 base
JonayKB May 8, 2025
2f7d37f
perf(CommunityEvent): Geting only base without relations
JonayKB May 8, 2025
0213f8b
test(User): Fixed tests
JonayKB May 8, 2025
dc8e334
Merge pull request #137 from JonayKB/136-only-let-user-updatate-herself
JonayKB May 9, 2025
5e12e99
fix(Image): Chaged to set and starting badges
JonayKB May 10, 2025
016f3b2
feat(ProfileForm): updateUser added (fix in back)
rabgonzalez May 11, 2025
2504ff5
feat(UserProfile): profile refreshes correctly
rabgonzalez May 11, 2025
db2308c
Update schema.graphqls
JonayKB May 11, 2025
2e749aa
feat(Home): posts added, fix from back
rabgonzalez May 12, 2025
60824b0
Update sendgrid.env
JonayKB May 12, 2025
aa931f3
feat(CommunityEvent): Created badge
JonayKB May 14, 2025
91d12fd
feat(ImageRepository): trying to upload the image
rabgonzalez May 14, 2025
6e79a6e
style(darkmode): darkmode implemented
rabgonzalez May 14, 2025
77a2dbe
feat(Post): Returning isLiekd, likes and comments ammoutn
JonayKB May 15, 2025
8348985
test(Post): Fixed tests
JonayKB May 15, 2025
adaf0c7
feat(ImageRepository): functional images and posts
rabgonzalez May 15, 2025
19850cd
test(Post): Fixed test
JonayKB May 15, 2025
fbc39f5
feat(HomeScreen): posts with image
rabgonzalez May 15, 2025
7120ed3
feat: To chane branch
JonayKB May 15, 2025
51775a6
Update API/src/main/java/es/iespuertodelacruz/routinefights/post/infr…
JonayKB May 15, 2025
35c783e
fix(Post): Added user to querry
JonayKB May 15, 2025
f092246
git pushMerge branch '138-return-the-amount-of-likes-comments-and-str…
JonayKB May 15, 2025
25764a2
feat(HomeScreen): functional posts
rabgonzalez May 15, 2025
93d2ff9
fix(Post): Now returns user
JonayKB May 15, 2025
b68e830
Merge pull request #141 from JonayKB/138-return-the-amount-of-likes-c…
JonayKB May 15, 2025
d8beb75
fix(Security): Adde https with cloudflare
JonayKB May 15, 2025
cb9bcae
Merge pull request #142 from JonayKB/138-return-the-amount-of-likes-c…
JonayKB May 15, 2025
f8cc168
fix: Changed port
JonayKB May 15, 2025
86a9d0d
Merge pull request #143 from JonayKB/138-return-the-amount-of-likes-c…
JonayKB May 15, 2025
7ae599f
fix: Adiso https, me acaban de decir de presntar mañana
JonayKB May 15, 2025
bb07d4a
Merge pull request #144 from JonayKB/138-return-the-amount-of-likes-c…
JonayKB May 15, 2025
af90220
feat(CommunityEvent): Task to give badges on end created
JonayKB May 15, 2025
eaddace
feat(HtmlTemplates): Improved styles
JonayKB May 15, 2025
5127d9b
feat(follow and like): follow and like on live preview added
rabgonzalez May 15, 2025
8ec5140
fix(User): Fixed pagination with followers
JonayKB May 15, 2025
afc1f60
test(User): added tests
JonayKB May 15, 2025
937e265
feat(follow and like): follow and like on live preview finished
rabgonzalez May 15, 2025
1f0edd8
fix: Fixed tests
JonayKB May 15, 2025
35752f7
feat(ActivityForm): images added to activities
rabgonzalez May 15, 2025
3477376
test: Changed tests
JonayKB May 15, 2025
f6f0a39
Merge pull request #145 from JonayKB/140-change-api-html-templates-of…
JonayKB May 15, 2025
468a417
fix: added null
JonayKB May 15, 2025
a97f1b0
List-of()
JonayKB May 15, 2025
d080289
Merge pull request #146 from JonayKB/140-change-api-html-templates-of…
JonayKB May 15, 2025
52e41a6
test(CommunityEvent): Startign tests
JonayKB May 16, 2025
ef70351
test(CommunityEvent): Added events and badge tests
JonayKB May 16, 2025
957d0f8
test(CommunityEvent): Added tests and fixed error mapeprs
JonayKB May 16, 2025
79c89c7
test(Post): fixed tests @autowired
JonayKB May 16, 2025
8f15ddd
test(CommunityEvent): Modified tests
JonayKB May 16, 2025
e2ee821
test(CommunityEvent): Added tasks event tests
JonayKB May 16, 2025
90cbf9a
refactor(loadMore): loadMore changed, but has some problems
rabgonzalez May 16, 2025
8aee558
test(Comment): Added tests
JonayKB May 16, 2025
b23f8c4
test(CommunityEvent): Added community event entity server tests
JonayKB May 16, 2025
33e7431
test(Badge): Added bageService tests
JonayKB May 16, 2025
6e254c6
Merge branch 'main' into 129-create-comunnity-events-base
JonayKB May 16, 2025
d36423a
fix: Fixed merge issues
JonayKB May 16, 2025
3680132
Merge pull request #147 from JonayKB/129-create-comunnity-events-base
JonayKB May 16, 2025
5d41335
feat(ActivitiesScreen): reload improved
rabgonzalez May 16, 2025
496c540
feat(many): many things related to reload changed, more to go
rabgonzalez May 16, 2025
d61f158
feat(SOAP): Added imageController soap
JonayKB May 16, 2025
a8cc36e
docs: Added some endpoints and iamgeas
JonayKB May 16, 2025
09e483e
docs: Added docker usage
JonayKB May 16, 2025
b1a6d9a
docs: Changed logos and highlithign
JonayKB May 16, 2025
d273618
docs: Added rest endpoitns
JonayKB May 16, 2025
c4e6a89
docs: Fixed table
JonayKB May 16, 2025
b4871c7
feat(many): reloads improved and loadmore added
rabgonzalez May 16, 2025
8fa26f4
feat(CommentScreen): comments added
rabgonzalez May 16, 2025
08bdc44
fix(Comment): Added user on commet FAST FIX
JonayKB May 16, 2025
79479cd
Merge pull request #149 from JonayKB/148-documentacion
JonayKB May 16, 2025
796796e
feat(Comment): style improved
rabgonzalez May 16, 2025
d459cf8
fix(Comment): Dont lose information QUICK FIX
JonayKB May 16, 2025
1bdcddc
fix
JonayKB May 16, 2025
247c3f6
fix
JonayKB May 16, 2025
364920a
fix
JonayKB May 16, 2025
bf5c8c2
fix
JonayKB May 16, 2025
97ecbe2
test(Comment): added comment vontoller v2 tests
JonayKB May 16, 2025
f1d01e9
Merge pull request #150 from JonayKB/148-documentacion
JonayKB May 16, 2025
6f8a523
feat(ProfilePictureScreen): profile picture can be updated now
rabgonzalez May 16, 2025
8edd36f
TODO: post doesn't upload and categories doesn't update
rabgonzalez May 16, 2025
1615b9d
feat(UploadForm): basic app finished (check dimensions)
rabgonzalez May 17, 2025
4e12c81
fix(Comment): Added comments
JonayKB May 17, 2025
5f97281
Merge pull request #151 from JonayKB/148-documentacion
JonayKB May 17, 2025
7d6d807
fix(Activity): Now doesnt sdisaper participed when creatign one
JonayKB May 17, 2025
a6ae9e9
removed transient
JonayKB May 17, 2025
932c25d
test(Activity): Fixed save test
JonayKB May 17, 2025
84dba51
Merge pull request #152 from JonayKB/148-documentacion
JonayKB May 17, 2025
1a2a46a
feat(UploadForm): basic app finished (check dimensions)
rabgonzalez May 17, 2025
c1b8cea
feat: logo and app's name added
rabgonzalez May 17, 2025
b6f29f7
fix: Fixed a lot of thigns with creations and badges
JonayKB May 17, 2025
3575e81
fix: Fixed improts
JonayKB May 17, 2025
35c145e
Update API/src/main/java/es/iespuertodelacruz/routinefights/community…
JonayKB May 17, 2025
238f691
feat(HomeScreen, ProfileScreen): show post's related activity
rabgonzalez May 17, 2025
d796f46
fix(Activity): Added activity to posts
JonayKB May 17, 2025
cc85dff
Merge branch '148-documentacion' of https://github.com/JonayKB/Routin…
JonayKB May 17, 2025
cbe9f19
test: fixed tests
JonayKB May 17, 2025
566630a
feat(RegisterScreen, ProfileFormScreen): phone and nationality added …
rabgonzalez May 17, 2025
6ce7c0f
fix(Activity): Upload posts problems
JonayKB May 17, 2025
65ef412
test(Activity): Added coverage form activiteis
JonayKB May 17, 2025
7c74a94
feat(RegisterScreen, ProfileFormScreen): phone and nationality added …
rabgonzalez May 17, 2025
2e13274
Merge pull request #154 from JonayKB/148-documentacion
JonayKB May 17, 2025
9d1d655
Merge pull request #155 from JonayKB/main
JonayKB May 17, 2025
a473526
Merge branch 'main' into 81-login-register-ui
JonayKB May 17, 2025
3a737bb
Merge pull request #156 from JonayKB/81-login-register-ui
JonayKB May 17, 2025
8928e8d
feat(UploadFormScreen): timesRemaining patched (by the moment)
rabgonzalez May 17, 2025
42806c7
feat(SOAP): Ended soap base, need tests
JonayKB May 17, 2025
9484163
feat(EventsScreen): getNearestEvent done
rabgonzalez May 17, 2025
f3acbb8
Merge pull request #160 from JonayKB/158-get-nearest-community-event
rabgonzalez May 17, 2025
4042301
feat(ProfileScreen): badges added to profiles
rabgonzalez May 17, 2025
ae50a6a
Merge pull request #162 from JonayKB/161-add-user-badges-on-profile
rabgonzalez May 17, 2025
1f0376e
style(Post): post's styles improved
rabgonzalez May 17, 2025
328eca3
style(HomeScreen): home styles improved
rabgonzalez May 17, 2025
3468277
style(Post): post's styles finished
rabgonzalez May 18, 2025
fd0d94d
feat(ActivityDetails): activityDetails added in streak
rabgonzalez May 18, 2025
2da2930
style(Login, Register): login and register screen's style improved
rabgonzalez May 18, 2025
6dfd5f6
style(Upload): upload styles improved
rabgonzalez May 18, 2025
59999b8
style(many): many colors changed (i don't even know where)
rabgonzalez May 18, 2025
d8fa5ce
test(SOAP): Added osap tests
JonayKB May 19, 2025
625eece
docs(SOAP): Adeed soap, fol and sonarquebe docs
JonayKB May 19, 2025
3f63fdd
styles(all): created variables for styles
rabgonzalez May 19, 2025
160d09c
styles(Post): lefthand added
rabgonzalez May 19, 2025
5e1b112
fix(SOAP): Adde some tests and fixed duplications of code
JonayKB May 19, 2025
3c747b3
Merge pull request #164 from JonayKB/97-soap
JonayKB May 19, 2025
1e9d387
docs(SOAP): Fixed some erros
JonayKB May 19, 2025
2ec1254
Merge pull request #165 from JonayKB/97-soap
JonayKB May 19, 2025
0aa128b
chore: Removed unused directories
JonayKB May 19, 2025
0ff6087
refactor(UploadPost): upload post functiona again
rabgonzalez May 19, 2025
a735491
feat(Adminsitrarion): Added graphs login, onlu need community events
JonayKB May 19, 2025
ff9a4bf
gitingore
JonayKB May 19, 2025
0796baa
fix: Canged postByUserV2 to email isnted of id
JonayKB May 19, 2025
3f81f5b
Merge branch 'main' of https://github.com/JonayKB/Routine-Fights into…
JonayKB May 19, 2025
9d08c27
style(many): lots of styles changed
rabgonzalez May 19, 2025
876b60a
fix: Cahnged order on quyerry
JonayKB May 19, 2025
1f01769
refactor(Home, Profile): lists changed
rabgonzalez May 19, 2025
f6553d9
fix: Aded graphs
JonayKB May 19, 2025
b9bbf40
feat: Upsize file size
JonayKB May 19, 2025
e5d7c5b
feat: Added findAllEvents
JonayKB May 19, 2025
0c5945b
refactor(All): alerts added to all screens
rabgonzalez May 19, 2025
d8467ea
fix: Fixed ts ignore
JonayKB May 19, 2025
269dda9
refactor(translations): new languages added
rabgonzalez May 19, 2025
c9d885b
refactor(many): some bugs fixed
rabgonzalez May 19, 2025
c3347f8
feat(EventsScreen): progress bar added
rabgonzalez May 19, 2025
87e777e
feat(Adminsitrarion): Created add badge, only left create event
JonayKB May 19, 2025
e74ae1e
feat(EventsScreen): i did it :)
rabgonzalez May 20, 2025
b7f97ef
Merge pull request #166 from JonayKB/159-get-user-badges
rabgonzalez May 20, 2025
7b4eaea
Update dev.yml
JonayKB May 20, 2025
213823a
Merge pull request #168 from JonayKB/103-creating-admisnistration-app…
JonayKB May 20, 2025
284b8f9
Update dev.yml
JonayKB May 20, 2025
023be16
feat(Adminsitrarion): Added dockerfile
JonayKB May 20, 2025
d5fa559
Merge pull request #169 from JonayKB/103-creating-admisnistration-app…
JonayKB May 20, 2025
a7ac870
feat(Adminsitrarion): Ended create event
JonayKB May 20, 2025
667118d
feat: Added get all activities
JonayKB May 20, 2025
e781eea
test: aaded tests
JonayKB May 20, 2025
a35e0df
Merge pull request #171 from JonayKB/170-add-findallactivities-funcions
JonayKB May 20, 2025
88e816b
feat(Adminsitrarion): Finished
JonayKB May 20, 2025
233c0bb
Merge pull request #172 from JonayKB/103-creating-admisnistration-app…
JonayKB May 20, 2025
9d7f421
fix: Fixed following psots
JonayKB May 20, 2025
c35a147
fix: Fixed get strreak
JonayKB May 20, 2025
705aaf7
feat(EventsScreen): points added
rabgonzalez May 20, 2025
1ce8748
fix: Pagination fixes
JonayKB May 20, 2025
dbecef3
fix(pagination): pagination fixed
rabgonzalez May 20, 2025
6865ea0
docs: Added ocs
JonayKB May 20, 2025
f04f7e3
Merge pull request #173 from JonayKB/167-add-loading-spinner-overlay
rabgonzalez May 20, 2025
e8bff7b
Merge branch 'main' of https://github.com/JonayKB/Routine-Fights into…
JonayKB May 20, 2025
dcad2a1
feat(RoutineFights): app released
rabgonzalez May 20, 2025
1b5385b
docs: Added coumentation
JonayKB May 20, 2025
ff6ac71
Merge branch 'main' of https://github.com/JonayKB/Routine-Fights into…
JonayKB May 20, 2025
7743706
fix: Fixed add badge to user
JonayKB May 20, 2025
861e7f2
fix
JonayKB May 20, 2025
e0591a5
Update SwaggerConfig.java
rabgonzalez May 20, 2025
cb17822
fix: Fixed follwors
JonayKB May 21, 2025
e7d36c9
Merge branch 'main' of https://github.com/JonayKB/Routine-Fights into…
JonayKB May 21, 2025
55fa714
Create SECURITY.md
JonayKB May 21, 2025
8467afc
android settings changed
rabgonzalez May 21, 2025
87c219c
Merge branch 'main' of https://github.com/JonayKB/Routine-Fights
rabgonzalez May 21, 2025
974baac
fix: Fix gets paginations
JonayKB May 21, 2025
3819db4
Merge branch 'main' of https://github.com/JonayKB/Routine-Fights into…
JonayKB May 21, 2025
e2cc7e5
fix(Activity): Fixed get streak on activities
JonayKB May 22, 2025
0718bef
Merge pull request #182 from JonayKB/176-fix-get-streak-on-activities
JonayKB May 22, 2025
5211867
chore(deps): bump axios from 1.8.4 to 1.12.0 in /administration
dependabot[bot] Sep 13, 2025
d12194d
Update dev.yml
JonayKB Oct 27, 2025
a79b9ac
Update dev.yml
JonayKB Oct 27, 2025
b4f229f
Update .github/workflows/dev.yml
JonayKB Oct 27, 2025
4cbedaf
Update dev.yml
JonayKB Oct 27, 2025
02f742b
Update .github/workflows/dev.yml
JonayKB Oct 27, 2025
311d2a3
Merge pull request #191 from JonayKB/PATCH-WORKFLOW
JonayKB Oct 27, 2025
d3b8c55
Update dev.yml
JonayKB Oct 27, 2025
ff5522b
Update dev.yml
JonayKB Oct 27, 2025
691a7a9
Update README.md
JonayKB Oct 27, 2025
8b3f1b8
Update README.md
JonayKB Oct 27, 2025
fd921ae
Update README to specify API connection port
JonayKB Oct 27, 2025
3e79fdc
Update Utils.tsx
JonayKB Oct 28, 2025
1ac8f08
Merge pull request #188 from JonayKB/dependabot/npm_and_yarn/administ…
JonayKB Oct 29, 2025
3ac2eec
Changed configs
JonayKB Oct 29, 2025
a216aa6
Added windwos dependenci
JonayKB Oct 29, 2025
bc93d85
Changed api host
JonayKB Oct 29, 2025
47aa953
Update .gitignore
JonayKB Oct 29, 2025
8a1eed3
Update .gitignore
JonayKB Oct 29, 2025
1055443
Delete administration/node_modules directory
JonayKB Oct 29, 2025
29a6f3f
Delete administration/.vscode directory
JonayKB Oct 29, 2025
188ec57
Delete administration/package-lock.json
JonayKB Oct 29, 2025
9ba4053
Delete .idea directory
JonayKB Oct 29, 2025
9f4ee05
Delete .vscode directory
JonayKB Oct 29, 2025
05b11e9
Update .gitignore
JonayKB Oct 29, 2025
ea22bde
Delete API/uploads directory
JonayKB Oct 29, 2025
f02bc12
Added firebase
JonayKB Oct 29, 2025
f77191a
Refactor FirebaseApp initialization logic
JonayKB Oct 29, 2025
ef9c2f6
Add import for List in FirebaseConfig.java
JonayKB Oct 29, 2025
aab1b29
Fixed issues sonarquebe
JonayKB Oct 30, 2025
73991b6
Remove unused import for Autowired annotation
JonayKB Oct 30, 2025
11e3388
Add files via upload
JonayKB Oct 31, 2025
5584278
Disable SSL for the application
JonayKB Nov 2, 2025
428f979
chore(deps-dev): bump @react-native-community/cli in /App
dependabot[bot] Nov 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
90 changes: 90 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: CI SonarQube Analysis DEV

on:
push:


jobs:
checks:
runs-on: ubuntu-latest

steps:
- name: Checkout del repositorio
uses: actions/checkout@v3

- name: Configurar JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '17'
cache: maven

- name: Compilar y ejecutar tests con Maven
working-directory: API
run: mvn clean test verify

- name: Ejecutar análisis en SonarQube
working-directory: API
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
BRANCH_NAME: ${{ github.ref_name }}
HOSTNAME: ${{ vars.HOSTING_PC }}
run: |
mvn sonar:sonar \
-Dsonar.projectKey=RoutineFights \
-Dsonar.host.url=http://$HOSTNAME:9000 \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.qualitygate.wait=true \
-Dsonar.branch.name=$BRANCH_NAME
build:
needs: checks
runs-on: ubuntu-latest
if: ${{ github.ref_name == 'main' }}
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Create Maven Package
run: mvn -f API/pom.xml clean package -DskipTests
- name: Create TIMESTAMP
run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
- name: Build and push java image
uses: docker/build-push-action@v6
with:
context: API
file: API/Dockerfile
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/apiroutinefights:latest,${{ vars.DOCKERHUB_USERNAME }}/apiroutinefights:${{ env.TIMESTAMP }}

- name: Build and push admin image
uses: docker/build-push-action@v6
with:
context: administration
file: administration/Dockerfile
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/administrationroutinefights:latest,${{ vars.DOCKERHUB_USERNAME }}/administrationroutinefights:${{ env.TIMESTAMP }}
deploy:
needs: build
runs-on: ubuntu-latest
if: ${{ github.ref_name == 'main' }}
steps:
- name: Deploy to digitalocean
uses: appleboy/ssh-action@v0.1.7
with:
username: ${{ vars.HOSTING_USERNAME }}
host: ${{ vars.HOSTING_PC }}
password: ${{ secrets.HOSTING_PASSWORD }}
script: |
docker compose down;
docker compose pull
docker image prune -f
docker compose up -d
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ replay_pid*
# Generated directories
/target/

# Ides
.vscode/
.idea/

2 changes: 2 additions & 0 deletions API/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
37 changes: 37 additions & 0 deletions API/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
.env

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

### UPLOADS ###
uploads/
19 changes: 19 additions & 0 deletions API/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
41 changes: 41 additions & 0 deletions API/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: '3.3'

services:
app:
image: jonaykb/apiroutinefights:latest
container_name: apiroutinefights
restart: always
ports:
- "8080:8080"
environment:
- SPRING_NEO4J_URI=bolt://db:7687
- SPRING_AUTHENTICATION_NEO4J_USER=neo4j
- SPRING_AUTHENTICATION_NEO4J_PASSWORD=1q2w3e4r
- MAIL_FROM=routinefights@gmail.com
- MAIL_PASSWORD=yhah camn tnmx uzgn
- SERVER_SSL_ENABLED=false
- JWT_SECRET=secret
depends_on:
- db
networks:
- apiNetwork
volumes:
- app_uploads:/uploads
db:
image: neo4j:latest
volumes:
- /$HOME/neo4j/logs:/logs
- /$HOME/neo4j/config:/config
- /$HOME/neo4j/data:/data
- /$HOME/neo4j/plugins:/plugins
environment:
- NEO4J_AUTH=neo4j/1q2w3e4r
restart: always
networks:
- apiNetwork

volumes:
db_data:
app_uploads:
networks:
apiNetwork:
12 changes: 12 additions & 0 deletions API/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Usa la imagen base OpenJDK 17 con Alpine
FROM openjdk:17-jdk-alpine

ARG JAR_FILE=target/RoutineFights-0.0.1-SNAPSHOT.jar

COPY ${JAR_FILE} /app.jar

COPY src/main/resources/application.properties /application.properties

EXPOSE 8080

ENTRYPOINT ["java", "-jar", "/app.jar", "--spring.config.location=classpath:/application.properties"]
42 changes: 42 additions & 0 deletions API/hexagonalScript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
# Author: JonayKB (DONT CHANGE THIS)
if [ "$#" -lt 1 ]; then
echo "Use: $0 <class_name1> [<class_name2> ...]"
exit 1
fi

# Shared

if [ ! -d "shared" ]; then
mkdir -p shared/config
mkdir -p shared/controllers
mkdir -p shared/dto
mkdir -p shared/security
mkdir -p shared/tasks
mkdir -p shared/utils
echo "Shared created."
else
echo "Shared already exists"
fi
for CLASS_NAME in "$@"
do

# Infrastructure

mkdir -p "$CLASS_NAME/infrastructure/adapters/primary/v2/controllers"
mkdir -p "$CLASS_NAME/infrastructure/adapters/primary/v3/controllers"
mkdir -p "$CLASS_NAME/infrastructure/adapters/primary/v2/dtos"
mkdir -p "$CLASS_NAME/infrastructure/adapters/primary/v3/dtos"
mkdir -p "$CLASS_NAME/infrastructure/adapters/secondary/repositories"
mkdir -p "$CLASS_NAME/infrastructure/adapters/secondary/mappers"
mkdir -p "$CLASS_NAME/infrastructure/adapters/secondary/services"
mkdir -p "$CLASS_NAME/infrastructure/adapters/secondary/entities"

# Domain

mkdir -p "$CLASS_NAME/domain/ports/primary"
mkdir -p "$CLASS_NAME/domain/ports/secondary"
mkdir -p "$CLASS_NAME/domain/services"

echo "Class structure created: $CLASS_NAME"
done
Loading
Loading