code100x / cms

Repo for https://app.100xdevs.com/
https://app.100xdevs.com/
1.06k stars 1.55k forks source link

bug: Cover Image for courses not showing up on the home page which comes after login #1238

Closed Parikshit2001 closed 1 month ago

Parikshit2001 commented 1 month ago

Describe the bug Cover Image is not showing up on the home page which comes after login. If I go to the src of that image it says access denied.

To Reproduce Steps to reproduce the behavior:

  1. Set up the project
  2. Go to the landing page

Expected behavior Image should show up on landing page

Screenshots or GIFs

Screenshot 2024-09-17 at 12 06 53 AM

Info (please complete the following information):

Additional context The data is seeded in the prisma/seed.ts file - https://github.com/code100x/cms/blob/main/prisma/seed.ts

Parikshit2001 commented 1 month ago

In my opinion either @hkirat has to fix it from the backend OR if you want some other image URLs, then please give it to me, I'll add them in the prisma/seed.ts file

anandrajsingh commented 1 month ago

It shows access denied when you try to open the image url directly on browser

ItsFlash10 commented 1 month ago

It's not a bug, the link added in the seed command is not public, you can replace it in your machine if you want.

sahitya-chandra commented 1 month ago

@Parikshit2001 Hey can you tell me what is the use of prisma/seed.ts file and scripts folder in src folder path src/scripts

upgraderboy commented 1 month ago

@Parikshit2001 Hey can you tell me what is the use of prisma/seed.ts file and scripts folder in src folder path src/scripts

The scripts present in scripts folder is used to automatic deploy your application on server that u will see study in dev ops, if you are member of cohort 3. The seed file in prisma is to add mockup data in your database using the file, in most of case that performed for testing purpose in dev environment.