Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2094 commits
Select commit Hold shift + click to select a range
d079fca
fix: added organisation creation for super admin
johnson-oragui Aug 14, 2024
8f84825
fix: added password constraints for user schema
johnson-oragui Aug 14, 2024
f209113
fix: updated logic to retrieve organisations roles after registration
johnson-oragui Aug 14, 2024
3c64b34
fix: added profile, data-privacy, news-letter, and region creation fo…
johnson-oragui Aug 14, 2024
26437ee
Merge pull request #892 from johnson-oragui/fix/super-admin-v1
trevorjob Aug 14, 2024
9936e29
fix: added html template for token sign in
johnson-oragui Aug 14, 2024
9caed1c
fix: modified the request token route to send email using background …
johnson-oragui Aug 14, 2024
7f2571c
fix: modified the verify-token logic accordingly
johnson-oragui Aug 14, 2024
ed785dc
fix: added constarints to tokenrequest schema and made email optional
johnson-oragui Aug 14, 2024
d9354d8
fix: modifed the tests accordingly
johnson-oragui Aug 14, 2024
5ce054a
new ci workflow
Sarahligbe Aug 15, 2024
40b9884
Merge pull request #894 from hngprojects/newci-devops
laraadeboye Aug 15, 2024
fcf1acb
fix worked on product feature endpoint
marveldo Aug 15, 2024
a803483
Merge branch 'hngprojects:dev' into feat/restructure-products
marveldo Aug 15, 2024
568546a
fix products endpoint
marveldo Aug 15, 2024
070ce4b
Merge branch 'feat/restructure-products' of https://github.com/marvel…
marveldo Aug 15, 2024
e6d302e
fix products endpoint
marveldo Aug 15, 2024
72aee10
Merge pull request #895 from marveldo/feat/restructure-products
CodewithSegNet Aug 15, 2024
6f027da
Merge branch 'dev' of https://github.com/hngprojects/hng_boilerplate_…
JoshuaOloton Aug 15, 2024
291a4a1
feat: add email notifications to contact form
JoshuaOloton Aug 15, 2024
e28fef5
fix: post contact us
JoshuaOloton Aug 15, 2024
e9126f9
Merge branch 'fix/auth-request-token-v1' of https://github.com/johnso…
johnson-oragui Aug 15, 2024
e21ab1d
Merge pull request #896 from johnson-oragui/fix/auth-request-token-v1
trevorjob Aug 15, 2024
31e7502
fix: fixed help center to integrate with frontend
JoshuaOloton Aug 15, 2024
305ee5a
fix: fix help center failing tests
JoshuaOloton Aug 15, 2024
f534dce
Merge pull request #882 from JoshuaOloton/fix/post-contact-us
Goketech Aug 15, 2024
d807d9d
Merge pull request #897 from JoshuaOloton/fix/help-center
Goketech Aug 15, 2024
3ddf930
chore: updated gitignore
Aug 15, 2024
78c3b4f
Update cd.dev.yaml
Aug 15, 2024
a98d339
Update cd.dev.yaml
Aug 15, 2024
9be2897
Merge branch 'dev' into server/hot-fix
Aug 15, 2024
f219ec6
Merge pull request #899 from hngprojects/server/hot-fix
Sarahligbe Aug 15, 2024
58297da
Update workflow
DrInTech22 Aug 15, 2024
04d29e3
Update workflow
DrInTech22 Aug 15, 2024
1b5caa2
Update workflows
DrInTech22 Aug 15, 2024
4266152
Merge pull request #900 from hngprojects/ci-workflow
laraadeboye Aug 15, 2024
e74035c
Update cd.staging.yaml
Sarahligbe Aug 15, 2024
de41edb
Merge pull request #902 from hngprojects/Sarahligbe-patch-6
DrInTech22 Aug 15, 2024
dd8acdb
bugfix: updated response status code
MikeSoft007 Aug 16, 2024
35bbf28
bugfix: updated response status code
MikeSoft007 Aug 16, 2024
ca55527
Merge remote-tracking branch 'origin/dev' into feat/stripe_checkout
MikeSoft007 Aug 16, 2024
6e716b8
bugfix: updated response status code
MikeSoft007 Aug 16, 2024
424dc05
Merge pull request #904 from MikeSoft007/feat/stripe_checkout
CodewithSegNet Aug 16, 2024
c2b9715
chore: update orgid to nullable in contactus table
JoshuaOloton Aug 16, 2024
14c7832
Merge pull request #906 from JoshuaOloton/chore/update-orgid-to-nulla…
johnson-oragui Aug 16, 2024
e3b4d18
Update cd.dev.yaml
Aug 16, 2024
f71fc25
Update cd.staging.yaml
Aug 16, 2024
c185559
Update cd.prod.yaml
Aug 16, 2024
d5edc40
Update cd.dev.yaml
Aug 16, 2024
18818cc
Update cd.dev.yaml
Aug 16, 2024
8e22663
ci: ignore migrations
Aug 16, 2024
f1f28a8
Update cd.dev.yaml
Aug 16, 2024
8b45808
Update cd.staging.yaml
Aug 16, 2024
b32dbe7
Update cd.prod.yaml
Aug 16, 2024
32a3c88
Update cd.staging.yaml
Aug 16, 2024
75b7541
Update ci.yml
Aug 16, 2024
bc17913
Create .gitkeep
Aug 16, 2024
7282e57
Merge pull request #908 from hngprojects/destinedcodes-patch-1
Sarahligbe Aug 16, 2024
e9fe4c3
fix: removed org_id from being passed to ContactUs table
JoshuaOloton Aug 16, 2024
144fe04
Merge pull request #910 from JoshuaOloton/fix/contactus-orgid-removal
joboy-dev Aug 16, 2024
9c086dd
bugfix: updated response status code
MikeSoft007 Aug 16, 2024
2b619b5
Merge remote-tracking branch 'origin/dev' into feat/stripe_checkout
MikeSoft007 Aug 16, 2024
98f6897
bugfix: updated response status code
MikeSoft007 Aug 16, 2024
38e7f5b
bugfix: updated response status code
MikeSoft007 Aug 16, 2024
814791f
bugfix: updated response status code
MikeSoft007 Aug 16, 2024
f4d1e65
Merge pull request #912 from MikeSoft007/feat/stripe_checkout
SundayMba Aug 16, 2024
8cce8ed
chore: send post contact feedback email
JoshuaOloton Aug 17, 2024
f2dbbd9
bugfix: updated billing plan to handle db integrity
MikeSoft007 Aug 17, 2024
9155dfa
Merge remote-tracking branch 'origin/dev' into feat/stripe_checkout
MikeSoft007 Aug 17, 2024
56c538d
bugfix: updated billing plan to handle db integrity
MikeSoft007 Aug 17, 2024
f32c4b7
Merge pull request #915 from MikeSoft007/feat/stripe_checkout
joboy-dev Aug 17, 2024
f465ce5
Merge branch 'dev' into chore/post-contact-feedback-email
joboy-dev Aug 17, 2024
47db717
Merge pull request #914 from JoshuaOloton/chore/post-contact-feedback…
joboy-dev Aug 17, 2024
7e38b0e
fix: Fixed invalid email domain part validation for login and register
Aug 22, 2024
7a941d9
fix: Fixed invalid email domain part validation for password reset
Aug 22, 2024
28cb04b
fix: Fixed invalid email domain part validation for magic-link
Aug 22, 2024
333eee6
fix: corrected a typo
Aug 22, 2024
9f2672d
fix: Modified all tests emails to use the correct format
Aug 22, 2024
6a6981a
Merge pull request #924 from johnson-oragui/fix/email-validation
trevorjob Aug 22, 2024
6e96cd1
fix: removed the exception thrown if a user has already subscribed to…
Aug 22, 2024
b1604c8
fix: added background task for sending of email on newsletter subscri…
Aug 22, 2024
5712204
fix: added newsletter-subscription template
Aug 22, 2024
1bf1ebe
Merge branch 'dev' into fix/newsletter-email-verification-subscription
johnson-oragui Aug 22, 2024
7b76146
fix: updated test
Aug 22, 2024
bded1e6
Merge branch 'fix/newsletter-email-verification-subscription' of http…
Aug 22, 2024
fefa9e7
Merge pull request #925 from johnson-oragui/fix/newsletter-email-veri…
trevorjob Aug 22, 2024
fd56487
fix: changed the endpoint from PATCH to POST method, renamed from cha…
Aug 22, 2024
07cff5c
fix: added confirm_new_password field with validation
Aug 22, 2024
7a12dc1
fix: modified tests accordingly with the changes made
Aug 22, 2024
3fe3f55
bugfix: updated google auth to handle seamless login flow with FE
MikeSoft007 Aug 22, 2024
1aa6700
Merge remote-tracking branch 'origin/dev' into feat/stripe_checkout
MikeSoft007 Aug 22, 2024
2cd66a3
Fix conflict and merge dev into branch: corrections in blog likes and…
chimeziriobioha Aug 22, 2024
9b2352f
Merge pull request #928 from johnson-oragui/fix/password-change-http-…
trevorjob Aug 22, 2024
20cdb65
Change dislike blog endpoint method from PUT to POST. Add objects_cou…
chimeziriobioha Aug 22, 2024
e3f8df0
fix: added profile, and organisations in response data
Aug 22, 2024
6bf77eb
fix: moved users/me to auth/@me
Aug 22, 2024
a7f234b
Merge branch 'dev' into fix/move-users/me-to-auth/@me
johnson-oragui Aug 22, 2024
2a994ba
Merge pull request #929 from johnson-oragui/fix/move-users/me-to-auth…
trevorjob Aug 22, 2024
4f284fa
feat: post user faq-inquiries form
JoshuaOloton Aug 23, 2024
32391e0
Merge branch 'dev' of https://github.com/hngprojects/hng_boilerplate_…
JoshuaOloton Aug 23, 2024
697c306
Merge pull request #934 from JoshuaOloton/feat/post-user-faq-inquirie…
Goketech Aug 23, 2024
7c34446
Merge branch 'dev' into fix/corrections-in-blog-like-and-dislike-impl…
chimeziriobioha Aug 23, 2024
1e853b2
Merge remote-tracking branch 'origin/dev' into feat/stripe_checkout
MikeSoft007 Aug 23, 2024
d3ee52b
bugfix: updated waitlist signup and send email confirmation
MikeSoft007 Aug 23, 2024
9af72c9
bugfix: updated waitlist signup and send email confirmation with cust…
MikeSoft007 Aug 23, 2024
86c27bd
bugfix: fixed waitlist test
MikeSoft007 Aug 23, 2024
29b1667
bugfix: fixed waitlist test
MikeSoft007 Aug 23, 2024
6c002fc
Update billing plan endpoints schemas to show sample return data in docs
chimeziriobioha Aug 23, 2024
c91bce4
Correct billing_plans to plans
chimeziriobioha Aug 23, 2024
24c7acd
bugfix: fixed waitlist test
MikeSoft007 Aug 23, 2024
853b3ee
bugfix: fixed waitlist test
MikeSoft007 Aug 23, 2024
f014351
bugfix: fixed waitlist test
MikeSoft007 Aug 23, 2024
91a5413
bugfix: fixed waitlist test
MikeSoft007 Aug 23, 2024
309e57c
fix: removed email from user-update schema
johnson-oragui Aug 23, 2024
e60e81f
fix: removed trailing slash from route
johnson-oragui Aug 23, 2024
c10b3cc
fix: removed check for email from user-update schema
johnson-oragui Aug 23, 2024
296f97c
fix: added fields for social accounts
johnson-oragui Aug 23, 2024
940b82d
fix: modified route from patch to put, used pydantic schemas as respo…
johnson-oragui Aug 23, 2024
f4b261a
fix: added validations for profile update schema
johnson-oragui Aug 23, 2024
fece34b
fix: added methods to support means for recovery_email change
johnson-oragui Aug 23, 2024
f027eca
feat: updated rate limiting for enhance security
MikeSoft007 Aug 23, 2024
f99d66b
fix: added template for recovery_email
Aug 23, 2024
4003192
fix: removed print statements
Aug 23, 2024
ef27123
fix: removed trailing slash
Aug 23, 2024
78d7f57
fix: added route for recovery_email verification
Aug 23, 2024
af3cd77
fix: modified prfile schemas and added schemas for recovery_email ver…
Aug 23, 2024
cc166da
fix: added methods for recovery_email verification
Aug 23, 2024
b19efbf
fix: modified tests that changes affected
Aug 23, 2024
df643b5
fix: modified tests that changes affected
Aug 23, 2024
885d3ed
Merge pull request #945 from johnson-oragui/fix/user-profile-update-v1
trevorjob Aug 23, 2024
5a6bdfa
feat: updated rate limiting for enhance security
MikeSoft007 Aug 23, 2024
4a55c85
Merge remote-tracking branch 'origin/dev' into bugfix/waitlist_email
MikeSoft007 Aug 23, 2024
354a2c4
feat: updated rate limiting for enhance security
MikeSoft007 Aug 23, 2024
ed86b1a
feat: updated rate limiting for enhance security
MikeSoft007 Aug 23, 2024
e6f0cd1
feat: updated rate limiting for enhance security
MikeSoft007 Aug 23, 2024
2b8e6c1
feat: updated rate limiting for enhance security
MikeSoft007 Aug 23, 2024
dfab918
feat: added feature to send email when user unsubscribes from a newsl…
trevorjob Aug 23, 2024
effa7f1
feat: added feature to send email when user unsubscribes from a newsl…
trevorjob Aug 23, 2024
5c0da95
feat: updated rate limiting for enhance security
MikeSoft007 Aug 23, 2024
9c987db
feat: added feature to send email when user unsubscribes from a newsl…
trevorjob Aug 23, 2024
50312de
Merge pull request #949 from trevorjob/dev
johnson-oragui Aug 23, 2024
609bddd
Merge branch 'dev' into bugfix/waitlist_email
johnson-oragui Aug 23, 2024
fd78c63
Merge pull request #942 from MikeSoft007/bugfix/waitlist_email
johnson-oragui Aug 23, 2024
05dd240
feat: updated email notification for waitlist signu
MikeSoft007 Aug 23, 2024
7d90f9b
Merge remote-tracking branch 'origin/dev' into bugfix/waitlist_email
MikeSoft007 Aug 23, 2024
9023e94
feat: updated email notification for waitlist signu
MikeSoft007 Aug 23, 2024
9071502
Merge pull request #950 from MikeSoft007/bugfix/waitlist_email
johnson-oragui Aug 23, 2024
c1cd498
Merge branch 'dev' into fix/corrections-in-blog-like-and-dislike-impl…
chimeziriobioha Aug 23, 2024
fa125e4
Merge branch 'dev' into fix/update-response-data-docs-for-billing-pla…
chimeziriobioha Aug 23, 2024
d5a6316
Merge pull request #936 from traderstechie/fix/corrections-in-blog-li…
johnson-oragui Aug 23, 2024
b16420b
Merge branch 'dev' into fix/update-response-data-docs-for-billing-pla…
chimeziriobioha Aug 23, 2024
6fd2c2d
feat: implement status page endpoints
JoshuaOloton Aug 23, 2024
fe695c4
boilerplate status page
utibenoah Aug 23, 2024
2544647
Merge pull request #951 from utibenoah/qa_tests/boilerplate-status-page
joboy-dev Aug 23, 2024
6b3075c
fix duplicate timezones
theijhay Aug 23, 2024
75f4ea0
feat: implement status page endpoints
JoshuaOloton Aug 24, 2024
8f2bcf5
Merge branch 'dev' of https://github.com/hngprojects/hng_boilerplate_…
JoshuaOloton Aug 24, 2024
012dc0e
fix: updated api base url
JoshuaOloton Aug 24, 2024
529a16a
fix: updated api base url
JoshuaOloton Aug 24, 2024
afc319e
feat added get all payments with user_id
marveldo Aug 24, 2024
4f33047
bugfix: updated google auth
MikeSoft007 Aug 24, 2024
72a9aeb
Merge remote-tracking branch 'origin/dev' into bugfix/waitlist_email
MikeSoft007 Aug 24, 2024
6aaef3f
bugfix: updated google auth
MikeSoft007 Aug 24, 2024
f49c00e
bugfix: updated google auth
MikeSoft007 Aug 24, 2024
3863607
bugfix: updated google auth
MikeSoft007 Aug 24, 2024
be6a80b
bugfix: updated google auth
MikeSoft007 Aug 24, 2024
7750011
Merge pull request #959 from MikeSoft007/bugfix/google_auth
johnson-oragui Aug 24, 2024
27fb752
Merge branch 'dev' into fix/update-response-data-docs-for-billing-pla…
johnson-oragui Aug 24, 2024
43d9e5a
Merge pull request #944 from traderstechie/fix/update-response-data-d…
johnson-oragui Aug 24, 2024
86ec9cd
Merge branch 'dev' into fix/duplicate-Time-Zone
theijhay Aug 24, 2024
79e53b6
Added search queries functionality
theijhay Aug 24, 2024
b276d5b
Merge branch 'dev' into feat/implement-status-page
joboy-dev Aug 24, 2024
7cdaa4d
Merge pull request #961 from theijhay/fix/Get-fags
johnson-oragui Aug 24, 2024
54fc4b8
Merge branch 'dev' into feat/implement-status-page
Goketech Aug 24, 2024
4804cb7
Merge branch 'hngprojects:dev' into feat/transaction-history
marveldo Aug 24, 2024
1fda8cf
Merge pull request #953 from JoshuaOloton/feat/implement-status-page
johnson-oragui Aug 24, 2024
d2e1ac2
Merge branch 'dev' into feat/transaction-history
marveldo Aug 24, 2024
39ad0a6
Merge pull request #962 from marveldo/feat/transaction-history
johnson-oragui Aug 24, 2024
75aa144
Add code for delete blog like endpoint
chimeziriobioha Aug 24, 2024
296892d
Add code for delete blog dislike endpoint
chimeziriobioha Aug 24, 2024
c1fe3b9
feat: implement returning faqs by category
Nifilat Aug 24, 2024
476a5a7
Merge branch 'hngprojects:dev' into fix/duplicate-Time-Zone
theijhay Aug 24, 2024
c12f3c1
made changes
theijhay Aug 24, 2024
b03099f
chore: added query params
Nifilat Aug 24, 2024
c58deb8
Merge pull request #964 from Nifilat/feat/faq-categories
joboy-dev Aug 24, 2024
9f24c4e
Add test for delete blog like endpoint
chimeziriobioha Aug 24, 2024
3742223
Add test for delete blog dislike endpoint
chimeziriobioha Aug 24, 2024
d7d3c46
Fix wrong reference in test delete blog like
chimeziriobioha Aug 24, 2024
5de8cb9
Merge branch 'dev' into fix/duplicate-Time-Zone
joboy-dev Aug 24, 2024
92a336e
Merge pull request #954 from theijhay/fix/duplicate-Time-Zone
johnson-oragui Aug 24, 2024
0e70092
Finish up delete blog like endpoint
chimeziriobioha Aug 24, 2024
6d61c37
Finish up delete blog dislike endpoint
chimeziriobioha Aug 24, 2024
274ca39
Merge branch 'dev' into feat/delete-blog-like
chimeziriobioha Aug 24, 2024
7c52ef9
Merge branch 'dev' into feat/delete-blog-dislike
chimeziriobioha Aug 24, 2024
6650ad4
Create regression-test.yml
DrInTech22 Aug 24, 2024
4fe2584
Fix else/if bug in services.blog.BlogService.delete_opposite_blog_lik…
chimeziriobioha Aug 24, 2024
ebc492f
fix: added conditionals to only send emails to new newsletter subscri…
Aug 24, 2024
2a7edc9
chore: updated with app dependencies
Aug 24, 2024
50d2f3f
Fix comment in services.blog.BlogService.delete_opposite_blog_like_or…
chimeziriobioha Aug 24, 2024
50c723c
Update regression workflow
DrInTech22 Aug 24, 2024
0abb5c7
Update .gitignore
DrInTech22 Aug 24, 2024
2d2fa96
Merge pull request #969 from hngprojects/DrInTech
Sarahligbe Aug 24, 2024
11e61f8
Merge branch 'dev' into fix/newsletter-sunscription
johnson-oragui Aug 24, 2024
c71f6dc
Merge pull request #970 from johnson-oragui/fix/newsletter-sunscription
trevorjob Aug 24, 2024
59eb5c8
Merge branch 'dev' into feat/delete-blog-dislike
chimeziriobioha Aug 24, 2024
00e7c3d
Merge branch 'dev' into feat/delete-blog-like
chimeziriobioha Aug 24, 2024
5178826
Merge pull request #968 from traderstechie/feat/delete-blog-dislike
johnson-oragui Aug 24, 2024
726df99
Merge branch 'dev' into feat/delete-blog-like
chimeziriobioha Aug 24, 2024
2661d52
Update regression workflow
DrInTech22 Aug 24, 2024
ac3005c
Merge branch 'dev' into DrInTech
DrInTech22 Aug 24, 2024
036354e
feat: implement search functionality on products dashboard
Nifilat Aug 24, 2024
a40f64e
feat: enhance endpoints for plan upgrade and downgrade
MikeSoft007 Aug 24, 2024
54e2e55
Merge remote-tracking branch 'origin/dev' into bugfix/google_auth
MikeSoft007 Aug 24, 2024
44defcd
Merge pull request #967 from traderstechie/feat/delete-blog-like
johnson-oragui Aug 24, 2024
1aa2f99
Merge branch 'dev' into DrInTech
DrInTech22 Aug 24, 2024
fcb2a11
Merge remote-tracking branch 'origin/dev' into bugfix/google_auth
MikeSoft007 Aug 24, 2024
9c44cfd
Merge pull request #973 from hngprojects/DrInTech
DrInTech22 Aug 24, 2024
a112f58
feat: implement product search on dashboard
Nifilat Aug 24, 2024
4df7127
feat: enhance endpoints for plan upgrade and downgrade
MikeSoft007 Aug 24, 2024
2020065
Merge remote-tracking branch 'origin/dev' into bugfix/google_auth
MikeSoft007 Aug 24, 2024
87ac768
feat: enhance endpoints for plan upgrade and downgrade
MikeSoft007 Aug 24, 2024
d1b99fc
feat:added test files to cover functionality
Nifilat Aug 24, 2024
82374e5
Merge remote-tracking branch 'upstream/dev' into dev
Nifilat Aug 24, 2024
6f447b2
Merge branch 'dev' into feat/product-search-on-dashboard
Nifilat Aug 24, 2024
c56fe40
Merge pull request #974 from MikeSoft007/bugfix/google_auth
johnson-oragui Aug 24, 2024
b4f1127
Merge remote-tracking branch 'upstream/dev' into dev
Nifilat Aug 24, 2024
358e9e3
Merge branch 'dev' into feat/product-search-on-dashboard
Nifilat Aug 24, 2024
7aa8a2b
Merge pull request #975 from Nifilat/feat/product-search-on-dashboard
joboy-dev Aug 24, 2024
5ad25dc
Update regression-test.yml
Sarahligbe Aug 24, 2024
69bb51d
fix: validate status code type
JoshuaOloton Aug 24, 2024
c20d01f
Merge branch 'dev' of https://github.com/hngprojects/hng_boilerplate_…
JoshuaOloton Aug 24, 2024
0d0c333
Merge pull request #976 from hngprojects/Sarahligbe-patch-7
DrInTech22 Aug 24, 2024
afefb45
Merge branch 'dev' into fix/status-page-script
joboy-dev Aug 24, 2024
6529035
fix: added email service to squeeze sign up
Aug 24, 2024
675963c
fix: added email service to squeeze sign up
Aug 24, 2024
0a10f7a
Merge remote-tracking branch 'origin/dev' into bugfix/squeeze_fix
Aug 24, 2024
36787b3
fix: added email service to squeeze sign up
Aug 24, 2024
f764b97
fix: added email service to squeeze sign up
Aug 24, 2024
dc8cc2a
Merge pull request #978 from SundayMba/bugfix/squeeze_fix
CodewithSegNet Aug 24, 2024
fca14ed
Merge branch 'dev' into fix/status-page-script
joboy-dev Aug 25, 2024
ef004ea
Merge pull request #977 from JoshuaOloton/fix/status-page-script
joboy-dev Aug 25, 2024
60c8150
Added send email template endpoint
theijhay Aug 25, 2024
d2ce65f
Merge pull request #979 from theijhay/feat/send-email-template
joboy-dev Aug 25, 2024
acbb244
Update regression-test workflow to only run on workflow dispatch
Sarahligbe Sep 26, 2024
bc97402
Merge pull request #980 from hngprojects/Sarahligbe-patch-8
Ravencodess Sep 26, 2024
e742a3e
Update regression-test.yml
Homoakin619 Feb 3, 2025
0fad56b
Update cd.prod.yaml
Homoakin619 Feb 6, 2025
cd0eb66
Merge pull request #981 from hngprojects/Homoakin619-patch-1
Homoakin619 Feb 6, 2025
c175991
Merge branch 'dev' into Homoakin619-patch-2
Homoakin619 Feb 6, 2025
82f8e2f
Merge pull request #982 from hngprojects/Homoakin619-patch-2
Homoakin619 Feb 6, 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
  •  
  •  
  •  
46 changes: 46 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Ignore node_modules directory
node_modules

# Ignore Python virtual environment directories
venv
.venv

# Ignore MacOS system files
.DS_Store

# Ignore Git directories and files
.git
.gitignore

# Ignore log files
*.log

# Ignore temporary files
*.tmp
*.swp
*~

# Ignore build directories
build/
dist/

# Ignore compiled Python files
__pycache__/
*.pyc

# Ignore Docker-related files (uncomment if needed)
# Dockerfile
# docker-compose.yml

# Ignore coverage reports
coverage/
*.cover

# Ignore IDE and editor-specific files
.vscode/
.idea/
*.iml

# Ignore test results
test-output/
reports/
30 changes: 28 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,32 @@ MYSQL_DRIVER=
DB_URL=postgresql://username:password@localhost:5432/test
SECRET_KEY = ""
ALGORITHM = HS256
ACCESS_TOKEN_EXPIRE_MINUTES = 10
JWT_REFRESH_EXPIRY=5
ACCESS_TOKEN_EXPIRE_MINUTES = 3000
JWT_REFRESH_EXPIRY=7
APP_URL=

GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""

FRONTEND_URL='http://127.0.0.1:3000/login-success'

TESTING=''

MAIL_USERNAME=""
MAIL_PASSWORD=""
MAIL_FROM="dummy@gmail.com"
MAIL_PORT=465
MAIL_SERVER="smtp.gmail.com"

TWILIO_ACCOUNT_SID="MOCK_ACCOUNT_SID"
TWILIO_AUTH_TOKEN="MOCK_AUTH_TOKEN"
TWILIO_PHONE_NUMBER="TWILIO_PHONE_NUMBER"

FLUTTERWAVE_SECRET=""
PAYSTACK_SECRET=""

STRIPE_SECRET_KEY=""
STRIPE_WEBHOOK_SECRET=""

MAILJET_API_KEY='MAIL JET API KEY'
MAILJET_API_SECRET='SECRET KEY'
File renamed without changes.
32 changes: 32 additions & 0 deletions .github/workflows/cd.dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Dev Deployment

on:
# push:
# branches: [dev]
# paths-ignore:
# - "README.md"
# - ".github/workflows/**"
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Use SSH Action
uses: appleboy/ssh-action@v0.1.8
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_python_fastapi_web/dev
git add .
git stash
git pull origin dev
source venv/bin/activate
pip install -r requirements.txt
alembic revision --autogenerate
alembic upgrade head
37 changes: 0 additions & 37 deletions .github/workflows/cd.dev.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/cd.prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Prod Branch Deployment

on:
push:
branches: [main]
paths-ignore:
- "README.md"
- ".github/workflows/**"
workflow_dispatch:

jobs:
on-success:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Archive application build
run: |
tar -czf python.tar.gz .

- name: Copy Artifacts to server
run: |
sshpass -p ${{ secrets.PASSWORD }} scp -o StrictHostKeyChecking=no python.tar.gz ${{ secrets.USERNAME }}@${{ secrets.HOST }}:/tmp/python
rm -f python.tar.gz

- name: Use SSH Action
uses: appleboy/ssh-action@v0.1.8
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd backend/python
tar -xzf /tmp/python/python.tar.gz -C .
rm -f /tmp/python/python.tar.gz
source venv/bin/activate
pip install -r requirements.txt
alembic revision --autogenerate
alembic upgrade head
37 changes: 0 additions & 37 deletions .github/workflows/cd.prod.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Staging Branch Deployment

on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches: [staging]
paths-ignore:
- "README.md"
- ".github/workflows/**"
workflow_dispatch:

jobs:
on-success:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -22,16 +22,11 @@ jobs:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd python/staging_source_code/
cd hng_boilerplate_python_fastapi_web/staging
git add .
git stash
git pull origin staging
source .venv/bin/activate
source venv/bin/activate
pip install -r requirements.txt
# alembic upgrade head



on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'
alembic revision --autogenerate
alembic upgrade head
38 changes: 22 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: CI

on:
push:
branches: [main, staging, dev, devops-main]
pull_request:
branches: [main, staging, dev, devops-main]
types: [opened, synchronize, reopened]
paths-ignore:
- "README.md"
# - ".github/workflows/**"

jobs:
build-and-test:
Expand All @@ -14,21 +15,28 @@ jobs:
postgres:
image: postgres:latest
env:
POSTGRES_USER: 'username'
POSTGRES_USER: "username"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "test"
ports:
- 5432:5432

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
virtual-environment: venv
python-version: "3.10"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
run: |
Expand All @@ -50,13 +58,11 @@ jobs:
exit 1
fi

- name: Run migrations
run: |
alembic revision --autogenerate
alembic upgrade head

# - name: Run migrations
# run: |
# activate
# alembic upgrade head

# - name: Run tests
# run: |
# activate
# pytest
- name: Run tests
run: |
PYTHONPATH=. pytest
32 changes: 32 additions & 0 deletions .github/workflows/pr-deploy.yml.bkp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PR Deploy
on:
pull_request:
types: [opened, synchronize, reopened, closed]


jobs:
deploy-pr:
environment:
name: preview
url: ${{ steps.deploy.outputs.preview-url }}
runs-on: ubuntu-latest
steps:
- name: Checkout to branch
uses: actions/checkout@v4
- name: Copy .env.sample to .env
run: cp .env.sample .env
- id: deploy
name: Pull Request Deploy
uses: hngprojects/pr-deploy@main
with:
server_host: ${{ secrets.HOST }}
server_username: ${{ secrets.USERNAME }}
server_password: ${{ secrets.PASSWORD }}
comment: true
context: '.'
dockerfile: 'Dockerfile'
exposed_port: '7001'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Print Preview Url
run: |
echo "Preview Url: ${{ steps.deploy.outputs.preview-url }}"
Loading