Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload photos #9

Open
yesahem opened this issue Sep 26, 2024 · 24 comments
Open

Upload photos #9

yesahem opened this issue Sep 26, 2024 · 24 comments
Assignees

Comments

@yesahem
Copy link
Owner

yesahem commented Sep 26, 2024

Add a feature where user can upload photos and readers can see the photos along with the posts

@saura8668
Copy link

Hi @yesahem, can you please assign me this issue?

@yesahem
Copy link
Owner Author

yesahem commented Oct 6, 2024

Go ahead @saura8668

@geekyharsh05
Copy link
Collaborator

@saura8668 Any updates?

@saura8668
Copy link

Hi @geekyharsh05, I have done the frontend. But facing issues while storing it into database. I've created the wranler.toml file to store the JWT_Token and Database_url but it is not fetching from that file. Can you help me with the setup?

@geekyharsh05
Copy link
Collaborator

@saura8668 yeah sure. Can you please tell me have you forked and cloned the newer dev branch or the older one?

@saura8668
Copy link

saura8668 commented Oct 13, 2024

Yeah I'm using the older one. It's showing my fork is 33commit behind.
This branch is 33 commits behind yesahem/Medium-Blog:main.

this is showing

@geekyharsh05
Copy link
Collaborator

@saura8668 Delete your fork and fork it again then clone it.

@saura8668
Copy link

done

@geekyharsh05
Copy link
Collaborator

geekyharsh05 commented Oct 13, 2024

Now go to neon.tech grab a database url and afterwards go to prisma accelerate and generate an accelerate url.

@saura8668
Copy link

saura8668 commented Oct 13, 2024

Got a DataBaseURL from prisma

@geekyharsh05
Copy link
Collaborator

Got a DataBaseURL from prisma

Now paste it in the env file of your backend folder

@saura8668
Copy link

Done

@geekyharsh05
Copy link
Collaborator

@saura8668 after pasting it in the env file then run the following commands:

npm run postinstall
npm run prisma:migrate
npm run dev

@saura8668
Copy link

Done

@geekyharsh05
Copy link
Collaborator

@saura8668 Is it working now?

@saura8668
Copy link

saura8668 commented Oct 13, 2024

Object { name: "PrismaClientInitializationError", clientVersion: "5.20.0" }

clientVersion: "5.20.0"

name: "PrismaClientInitializationError"

getting this error after I try to signup using the UI

getting the DATABASE_URL undefined after it hits the signup endpoint
Further I have pasted the DATABASE_URL in [.env.example] this file and renamed as .env

@geekyharsh05
Copy link
Collaborator

@saura8668 Is your .env file is in the backend folder? Or it is in the root.

@geekyharsh05
Copy link
Collaborator

@saura8668 Make sure it is inside the backend folder.

@saura8668
Copy link

@geekyharsh05 yes I've created it inside backend folder.still getting undefined for c.env.DATABASE_URL

@geekyharsh05
Copy link
Collaborator

@saura8668 Connect with me on X.

@yesahem
Copy link
Owner Author

yesahem commented Oct 15, 2024

@saura8668 schedule a meet with me or @geekyharsh05 day after tomorrow would love to help !!!
discord(mine): ahemraj
x(mine): X

@saura8668
Copy link

saura8668 commented Oct 16, 2024

Sure. @geekyharsh05 I've pinged you in X

@saura8668
Copy link

Hi @yesahem, @geekyharsh05 I was able to solve the undefined environment variable issue. The frontend is ready just need to do the backend part to store images.

@yesahem
Copy link
Owner Author

yesahem commented Oct 17, 2024

Hi @yesahem, @geekyharsh05 I was able to solve the undefined environment variable issue. The frontend is ready just need to do the backend part to store images.

Do you need any more help regarding the backend or it is fine now !!
Let me know

If you need any help ping me over X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants