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

Fetch project data from api #31

Conversation

sarah-fidahussain-SLU
Copy link

Fixes #2

What was changed: Created a fetchProjectData.mjs function that uses the extracted projectID to fetch from the API, log into the console, and throw an error if an error occurs during fetching. test.html was updated to display information if a projectID is found.

Why it was changed: This change allows us to see information about contributors and other project-related information.

How it was changed: An mjs file was created that includes the fetchProjectData function. The existing test.html file was altered to include the function and to display information about the project using the extracted project ID. if the project ID is not found, then no information is displayed.

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

Successfully merging this pull request may close these issues.

Welcome page stub
4 participants