-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use Meetup Api to fetch upcoming meetups #4
Comments
Is there a plan to create an express backend service to consume meetup information? This is a static project correct? We can create a separate repo for API |
Hey @wem5637, Good question! I was hoping we could try Gatsby's 3rd party plugin support: |
I'd imagine we could probably cron job that to check for anything new each day and generate new pages based on that? Even better if Meetup has an evented system that could ping us that something has changed. |
You can assign this to me for now. I'll see if I can muster up something today and tomorrow. |
I looked into @peterpme 's link above. There doesn't seem to be an easy way to connect to non graphql external apis like meetup.com. Curious to see if anyone else has had more success with this than I have. Are we decided that this project will be serverless? A backend client would be a big help. |
I think you're right @wem5637, if there's no easy way to do it we should just put up an express server for now 😃 |
Not sure if this matters or not https://www.gatsbyjs.org/blog/2018-09-25-announcing-graphql-stitching-support/ |
Great, might already have something set up from the former project. I'll let you know when I get to this. |
I started this. It's located here. The project makes hourly requests to meetup.com and serves that info over the following routes. Get group info - /api/groups Feel free to fork and make it your own @peterpme |
Hey @wem5637 😍 thank you so much!!! Would you be able to move the repo over to |
Ah, I don't have permission to move/create repos in chicago.js. So believe I'm unable to. |
If we want to skip the backend for now since sounds like still a work-in-progress, a faster way to get this stood up may be to just do a simple Seems to work in curl without credentials since upcoming events are public for these groups. Example curl to get next upcoming react chicago event:
|
It's all set up, we just need to merge it into the project. We can't make a client side request directly to the endpoint because of CORS restrictions. |
Since I don't have permission to create repositories, someone with permission would need to fork this project to ChicagoJS. In essence what this enables, we have an api server with which we can get meetup information. Meetup information is obtained via cron job then relayed to the front-end by any call that is made. We'd need to host this somehwere but it's totally something that a small heroku instance can do for now. I could do this myself but the instance would lack continuing support and ownership from chicagojs. |
Thanks @wem5637!! Forked it over to github.com/chicagojs/chicagojs.org-api and will host this for us shortly 😄 |
Either way I'm good with. One note with regards to CORS restriction comment, that can be bypassed by using JSONP. Example of client-side only react-chicago meetup request: https://alek-s.github.io/jsonp_test/ |
@Alek-S Ah great, I'm not familiar at all with jsonp. I've been wondering how people have found ways around CORS. I think there are definitely options available to whoever wants to own the meetup front end portion now. |
Meetup has an API we can use to fetch upcoming meetups and info.
Since we're storing the meetupId, all we have to do is parse & fetch this info
https://www.meetup.com/meetup_api/docs/
The text was updated successfully, but these errors were encountered: