digitomize / digitomize

Digitomize, part of Microsoft for Startups Founders Hub, is an open-source platform that combines two main sections: Contests and User Profiles. It allows users to explore upcoming coding contests and dynamically create developer portfolios.
https://www.digitomize.com
MIT License
584 stars 296 forks source link

[Feature]: Backend implementation for challenges #836

Open pranshugupta54 opened 6 months ago

pranshugupta54 commented 6 months ago

Is your feature request related to a problem? Please describe.

Currently challenges are directly shown on the frontend.

Describe the solution you'd like

Make proper routes and fetching for challenges just like contests.

Alternatives

No response

Additional Context

No response

Are you interested in contributing?

Code of Conduct

Which program are you contributing in?

gssoc, swoc, kwoc, dwoc, tublian

linear[bot] commented 6 months ago

DIG-408 [Feature]: Backend implementation for challenges

github-actions[bot] commented 6 months ago

Hello @pranshugupta54! 🌟 Thanks a bunch for creating an issue. Your input is invaluable, and we're eager to collaborate with you to address the matter. Keep up the fantastic work!

Don't forget to hit the :star: star button :wink:

[!TIP] Don't forget to check our Contributing Guidelines, PR Guidelines and Issue Guidelines for more details.

Website | Discord | Twitter | Instagram | Linkedin

Aadithya-J commented 6 months ago

what platforms challenges should be added ? i'd like to work on this issue

pranshugupta54 commented 6 months ago

Hey @Aadithya-J, we're only adding Tublian and Quine Quests for now. Let me know when you are able to setup the project locally. This needs to be implemented very similar to Contests.

Aadithya-J commented 6 months ago

Hey, i have setup the project locally. If you assign it to me i'll start working on it.

Also running lint seems to have made changes in 22 files (just spacing and empty line fixes) should i just commit with the corrections or leave it as it is

pranshugupta54 commented 6 months ago

Leave the lint part for this issue, we can take it separately.

github-actions[bot] commented 6 months ago

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

Aadithya-J commented 6 months ago

@pranshugupta54 i tried working on this but it seems like both tublian and quine quests do not have an ap and also render content dynamically so it cant be extracted using cheerio. I can use puppeteer or other similar browser automation libraries but they are too heavy weight. Should i use it or is there any other alternative ?

pranshugupta54 commented 6 months ago

@Aadithya-J, check their Network inside inspect. They do use APIs to fetch the data dynamically

Aadithya-J commented 6 months ago

@pranshugupta54 yes i tried that but when i try to access it shows either "This http request method is not supported for this endpoint." or "unauthorized"

https://cosmos.quine.sh/api/cosmos/creators/quest/

pranshugupta54 commented 6 months ago

@Aadithya-J, explore the network more - they have other API calls for it. You're either not using the method properly.

Aadithya-J commented 6 months ago

@pranshugupta54 Ok i have found the api call to fetch it for quine quests and made it work , but im not sure how to do it for tublian i have checked all the requests in network its not working. i'll work on only quine quests for now. will be completed in a few days

github-actions[bot] commented 5 months ago

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.