Skip to content

added neon db with sqlalchemy + psycorg#21

Merged
Harish-2003 merged 2 commits intoOpenTekHub:mainfrom
MUHSIN-M-P:feat/db
Jul 26, 2025
Merged

added neon db with sqlalchemy + psycorg#21
Harish-2003 merged 2 commits intoOpenTekHub:mainfrom
MUHSIN-M-P:feat/db

Conversation

@MUHSIN-M-P
Copy link
Contributor

Linked Issue

Closes #14
#14

Testing

@Harish-2003 Harish-2003 added gssoc'25 this issue is a part of girl script summer of code 2025 level3 labels Jul 26, 2025
@Harish-2003
Copy link
Collaborator

can you attach the images of the testing ?
and what about the creditianls have you pasted them in .env file?
@MUHSIN-M-P

@MUHSIN-M-P
Copy link
Contributor Author

MUHSIN-M-P commented Jul 26, 2025

postrequest send otp neon table these are results of send otp and verification of otp and third one shows the results in db. i have created my own neon db and connect through .env locally. you can create and take the database_url and paste in the env file. if require i can provide env.example

@MUHSIN-M-P
Copy link
Contributor Author

i have completed issue #15 also after this i can provide it's PR. also i have take issue #16 to add rate limiting but in pull request #18 they are adding cool down , so user have to wait for 30 sec , instead of that by using redis as mentioned in issue #16 we can fix the issue.

@Harish-2003
Copy link
Collaborator

i have completed issue #15 also after this i can provide it's PR. also i have take issue #16 to add rate limiting but in pull request #18 they are adding cool down , so user have to wait for 30 sec , instead of that by using redis as mentioned in issue #16 we can fix the issue.

Ya that's what I am thinking
And also can you provide me the environment example on how u added... ?

@MUHSIN-M-P
Copy link
Contributor Author

# Database
DATABASE_URL=postgresql+psycopg://<username>:<password>@<host>/<database>?sslmode=require&channel_binding=require

# JWT
JWT_SECRET_KEY=your_super_secret_jwt_key_here_change_this_in_production

# Twilio
TWILIO_ACCOUNT_SID=your_twilio_account_sid_here
TWILIO_AUTH_TOKEN=your_twilio_auth_token_here
TWILIO_VERIFY_SERVICE_SID=your_twilio_verify_service_sid_here

and in PR #20 i have added pydantic in models . - you can refer user.py

@Harish-2003
Copy link
Collaborator

wait #20 is opened by kowshik?

@Harish-2003 Harish-2003 merged commit 6521c60 into OpenTekHub:main Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc'25 this issue is a part of girl script summer of code 2025 level3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding database

2 participants