Skip to content

Commit f424356

Browse files
authored
Merge branch 'dev' into hng_backend_project
2 parents 0a6733c + 2ca80c4 commit f424356

File tree

198 files changed

+24523
-1283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+24523
-1283
lines changed

.env.example

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
1-
NODE_ENV=development
21
PROFILE=local
3-
PORT=5000
4-
HOST=
5-
REDIS_PORT= 6379
6-
DB_SSL=true
2+
NODE_ENV=development
3+
4+
PORT=3008
75

86
JWT_SECRET=someSecrets
97
JWT_EXPIRY_TIMEFRAME=3600
8+
9+
1010
REDIS_HOST=localhost
1111
REDIS_PORT=6379
12-
DB_TYPE=
12+
13+
DB_TYPE=postgres
1314
DB_USERNAME=
1415
DB_PASSWORD=
15-
DB_HOST=
16-
DB_NAME=hng
16+
DB_HOST=localhost
17+
DB_DATABASE=
1718
DB_ENTITIES=dist/src/modules/**/entities/**/*.entity{.ts,.js}
1819
DB_MIGRATIONS=dist/db/migrations/*{.ts,.js}
19-
POSGRES_USER=$DB_USERNAME
20-
POST
21-
JWT_SECRET=gsgs
22-
JWT_EXPIRY_TIMEFRAME=1500000
23-
DB_SSL=false
24-
JWT_REFRESH_SECRET=bbp
25-
JWT_REFRESH_EXPIRY_TIMEFRAME=15
26-
GOOGLE_REDIRECT_URI=
20+
21+
JWT_SECRET=someSecrets
22+
JWT_EXPIRY_TIMEFRAME=3600
23+
24+
ADMIN_SECRET_KEY=sometext
25+
2726
GOOGLE_CLIENT_SECRET=
2827
GOOGLE_CLIENT_ID=
29-
OAUTH_LOGIN_REDIRECT=
30-
SMTP_HOST=
28+
29+
SMTP_HOST=sandbox.smtp.mailtrap.io
3130
SMTP_PORT=587
32-
SERVER_NAME=Boilerplate
31+
SERVER_NAME=api
3332
SMTP_USER=
34-
SMTP_PASSWORD=
35-
FRONTEND_URL=
36-
ADMIN_SECRET=
37-
SUPPORT_EMAIL=
38-
AUTH_PASSWORD=
39-
BASE_URL=
40-
FLUTTERWAVE_SECRET_KEY=
41-
FLUTTERWAVE_BASE_URL=
33+
SMTP_PASSWORD=

.env.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ NODE_ENV=development
3131
PORT=3000
3232

3333
DB_USERNAME=username
34-
DB_PASSWORD=password
34+
DB_PASSWORD=password123
3535
DB_TYPE=postgres
3636
DB_NAME=database
3737
DB_HOST=localhost

.eslint.rc

Whitespace-only changes.

.github/ISSUE_TEMPLATE/chore--.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: 'chore: '
3+
about: Template for maintenance tasks
4+
title: '[CHORE]'
5+
labels: chore
6+
assignees: ''
7+
---
8+
9+
## Description
10+
11+
<!-- Provide a clear and concise description of the maintenance task -->
12+
13+
## Motivation
14+
15+
<!-- Explain why this maintenance task is necessary -->
16+
17+
## Proposed Changes
18+
19+
<!-- Describe the changes that need to be made -->
20+
21+
## Expected Outcome
22+
23+
<!-- What will be the result after completing this chore -->
24+
25+
## Acceptance Criteria
26+
27+
<!-- List the criteria that must be met for this chore to be considered complete -->
28+
29+
- [ ]
30+
- [ ]
31+
- [ ]
32+
33+
## Additional Context
34+
35+
<!-- Add any other context or screenshots about the chore here -->

.github/ISSUE_TEMPLATE/docs--.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: 'docs: '
3+
about: Template for documentation tasks
4+
title: '[DOCS]'
5+
labels: documentation
6+
assignees: ''
7+
---
8+
9+
## Description
10+
11+
<!-- Provide a clear and concise description of the documentation task -->
12+
13+
## Current Documentation
14+
15+
<!-- Describe the current state of documentation, if any -->
16+
17+
## Proposed Changes
18+
19+
<!-- Describe what needs to be added, updated, or removed -->
20+
21+
## Motivation
22+
23+
<!-- Explain why these documentation changes are necessary -->
24+
25+
## Acceptance Criteria
26+
27+
<!-- List the criteria that must be met for this documentation task to be considered complete -->
28+
29+
- [ ]
30+
- [ ]
31+
- [ ]
32+
33+
## Additional Context
34+
35+
<!-- Add any other context or screenshots about the documentation task here -->

.github/ISSUE_TEMPLATE/feat--.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
---
22
name: 'feat: '
33
about: Template for feature tasks
4-
title: "[FEAT]"
4+
title: '[FEAT]'
55
labels: feature
66
assignees: ''
7-
87
---
98

109
## Description
1110

11+
<!-- Provide a clear and concise description of the feature -->
1212

1313
## Acceptance Criteria
1414

15+
<!-- List the criteria that must be met for this feature to be considered complete -->
16+
17+
- [ ]
18+
- [ ]
19+
- [ ]
20+
21+
## Purpose
22+
23+
<!-- Explain why this feature is needed -->
1524

16-
### Purpose
25+
## Requirements
1726

18-
### Requirem#ents
27+
<!-- List any specific technical requirements for this feature -->
1928

29+
## Expected Outcome
2030

21-
### Expected Outcome
31+
<!-- Describe what the end result should look like -->
2232

33+
## Additional Context
2334

24-
###
35+
<!-- Add any other context or screenshots about the feature request here -->

.github/ISSUE_TEMPLATE/fix--.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: 'fix: '
3+
about: Template for bug fixes
4+
title: '[FIX]'
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Bug Description
10+
11+
<!-- Provide a clear and concise description of the bug -->
12+
13+
## Steps to Reproduce
14+
15+
<!-- List the steps to reproduce the behavior -->
16+
17+
1.
18+
2.
19+
3.
20+
21+
## Expected Behavior
22+
23+
<!-- Describe what you expected to happen -->
24+
25+
## Current Behavior
26+
27+
<!-- Describe what actually happens -->
28+
29+
## Screenshots/Logs
30+
31+
<!-- If applicable, add screenshots or logs to help explain the problem -->
32+
33+
## Environment
34+
35+
<!-- Please complete the following information -->
36+
37+
- OS: [e.g. Windows, macOS, Linux]
38+
- Browser/Device: [e.g. Chrome, Firefox, iPhone]
39+
- Version: [e.g. 22]
40+
41+
## Possible Solution
42+
43+
<!-- If you have suggestions on how to fix the bug -->
44+
45+
## Additional Context
46+
47+
<!-- Add any other context about the problem here -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Pull Request
2+
3+
## Description
4+
5+
<!-- Provide a brief summary of the changes made in this PR -->
6+
7+
## Related Issue
8+
9+
<!-- Link to the related issue(s) this PR addresses -->
10+
11+
Fixes #(issue)
12+
13+
## Type of Change
14+
15+
<!-- Mark the appropriate option with an "x" -->
16+
17+
- [ ] feat: New feature
18+
- [ ] fix: Bug fix
19+
- [ ] docs: Documentation updates
20+
- [ ] style: Code style/formatting changes
21+
- [ ] refactor: Code refactoring
22+
- [ ] perf: Performance improvements
23+
- [ ] test: Test additions/updates
24+
- [ ] chore: Build process or tooling changes
25+
- [ ] ci: CI configuration changes
26+
- [ ] other: <!-- describe -->
27+
28+
## How Has This Been Tested?
29+
30+
<!-- Describe the tests you ran to verify your changes -->
31+
32+
- [ ] Unit tests
33+
- [ ] Integration tests
34+
- [ ] Manual tests
35+
36+
## Test Evidence
37+
38+
<!-- Please upload a screenshot showing all tests passing -->
39+
<!-- This is required for all PRs that include code changes -->
40+
41+
## Screenshots (if applicable)
42+
43+
<!-- Add screenshots to help explain your changes if UI is affected -->
44+
45+
## Documentation Screenshots (if applicable)
46+
47+
<!-- If you've made code changes, please add screenshots of the updated documentation -->
48+
<!-- This is required for all PRs that include code changes that affect user-facing features -->
49+
50+
## Checklist
51+
52+
<!-- Mark the appropriate option with an "x" -->
53+
54+
- [ ] My code follows the project's coding style
55+
- [ ] I have commented my code, particularly in hard-to-understand areas
56+
- [ ] I have made corresponding changes to the documentation
57+
- [ ] My changes generate no new warnings
58+
- [ ] I have added tests that prove my fix is effective or that my feature works
59+
- [ ] New and existing unit tests pass locally with my changes
60+
- [ ] Any dependent changes have been merged and published
61+
- [ ] I have included a screenshot showing all tests passing
62+
- [ ] I have included documentation screenshots (if applicable)
63+
64+
## Additional Notes
65+
66+
<!-- Add any other information about the PR here -->

.gitignore

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ fabric.properties
5555
##
5656
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5757

58+
59+
# DB
60+
data/db/
61+
62+
docker-compose.yml
5863
# User-specific files
5964
*.suo
6065
*.user
@@ -99,6 +104,7 @@ BenchmarkDotNet.Artifacts/
99104

100105
# .NET Core
101106
project.lock.json
107+
package-lock.json
102108
project.fragment.lock.json
103109
artifacts/
104110
**/Properties/launchSettings.json
@@ -385,10 +391,9 @@ Network Trash Folder
385391
Temporary Items
386392
.apdisk
387393

388-
=======
389394
# Local
390-
dist
391-
/.env
395+
dist/
396+
.env
392397
/.env.*
393398
*._local.ts
394399

@@ -400,3 +405,38 @@ dist
400405
*.dev
401406
*.prod
402407

408+
409+
# User specific ignores
410+
todo.txt
411+
/.vscode/
412+
.vscode/
413+
414+
# Docker compose
415+
docker-compose.yml
416+
data/
417+
data/
418+
docker-compose.yml
419+
package-lock.json
420+
.dev.env
421+
422+
423+
package-lock.json
424+
docker-compose.yml
425+
data/
426+
.dev.env
427+
428+
/compose/compose.yaml
429+
compose/compose.yaml
430+
431+
data/
432+
docker-compose.yml
433+
package-lock.json/
434+
package-lock.json
435+
.dev.env
436+
437+
438+
package-lock.json
439+
docker-compose.yml
440+
data/
441+
.dev.env
442+

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"source.fixAll": "explicit"
3434
},
3535
"[typescript]": {
36-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
36+
"editor.defaultFormatter": "vscode.typescript-language-features"
3737
}
3838
}

0 commit comments

Comments
 (0)