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

add meetup component with API call #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add meetup component with API call #2

wants to merge 1 commit into from

Conversation

dotis90
Copy link

@dotis90 dotis90 commented Jun 5, 2020

Added a meetup component that makes a call to an API to get the information for upcoming events. I needed to use an additional cors API to get access to the data, otherwise it was inaccessible. It's just one solution to getting the data, though it may just be a temporary one. I am getting the data from Syracuse Software Meetup, and currently there are no Code for Syracuse meetings listed. Once they become available, I think I will be able to filter out the Code for Syracuse events by title, put them into a new array, and then only display the first element, or all of them depending on how much we want to show.

I'm sure I can find a library/libraries to help us with formatting the event dates too.

"https://www.meetup.com/Syracuse-Software-Development-Meetup/events/json/"

useEffect(() => {
fetch(corsAPI + meetupURL, {
Copy link
Member

@1egoman 1egoman Jul 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be a good idea to url encode meetupURL in this situation: corsAPI + encodeURIComponent(meetupUrl). I'm not 100% sure on this, it's just a hunch and in practice it may not matter.

Copy link
Member

@1egoman 1egoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! This seems like a good proof of concept and should be pretty easy to incorporate into the top part of the page - what you suggested makes sense.

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.

2 participants