If you’ve read Discover Meteor in the past, you might’ve noticed that the book itself (http://book.discovermeteor.com/) was a Meteor app.
Sadly our database provider (Compose) has discontinued support for the MongoDB version that the book was using, and we don’t have the time to figure out how to upgrade the app to work with a more recent version of Meteor and/or Mongo.
I was just on the Discover Meteor site today (I was telling my Meteor story) and I remember when you guys launched that, it kind of was part of my reason for 1st hearing about Meteor and being pretty excited that 1 person could build a full-stack app.
If you don’t mind, we could try to turn this into a community project to support it.
And it should not be much trouble to get you on the latest versions of everything.
For sure I think we can help keep it up I’ll post this on the community Slack to see if anyone in there wants to help too.
Thanks for creating the book by the way! I don’t think I ever thanked you. I got your newsletter and even started using Hipmunk for travel back in the day.
@sacha this was the first Meteor book I read and I was really impressed by the simplicity and elegance of the technology specially coming from Java frameworks. Furthermore, the book was extremely well written and very engaging.
So I’m very grateful for sharing your knowledge with us! and many thanks for keeping it open.
There is also a Middleman app that can be used to publish the book but it’s not currently on GitHub for some reason. I also haven’t ran a Ruby app in decades (feels like it…) so I’m not sure how well it would work.
So we’ll have the tutorial, guide, and the community book, perhaps we can call the book discover meteor to keep the tradition, you can think about as a community maintained Meteor wikipedia.
I think we’ve enough brain power in the community to pull it off.
I fixed the the release and package versions and got the server running but I am not the React pro, so it would be good to have one or two other help me with the PR and get the app running at 1.10.2
Great job @jkuester, thanks for starting the work!! I’ve not been using React, but I’m in to help out where I can Any other React users who want to pick up a bit of work with @jkuester?
So for anyone else taking a look at this, here is my update for the day. I started with @jkuester’s PR and was able to resolve all server errors, and most client errors.
I’m still working on an issue of properly importing a new required npm library due to React 15.5 deprecating React.createClass . There are 47 .jsx files in the project that use this deprecated command. I did a quick search & replace to replace them with createReactClass via the React migration guide.
Because this project uses Meteor Default file load order it is loading files on the client on it’s own, without explicit import and export commands. The load order starts to go like this:
I put the new createReactClass import in the client/lib/react.js file because that is also where the app is importing the React package.
import React from 'react';
import createReactClass from 'create-react-class';
The import works, because I console logged it. However errors are still generated when the .jsx files try to use the new createReactClass. If I import the createReactClass into every individual .jsx file, it works, and I can clear the error 1 by 1, but there are 47 imports that I would have to specify.
So I’m wondering if anyone could take a look or would know how to import without all the manual imports. Also I could just bite the bullet and and do them manually.
createReactClass is outdated for now, that’s why it cannot find it. We should use functional components with react-meteor-data
Can handle it only on weekends.
and import this component where needed. For stateless components just use a function that returns JSX. The problem with the present React implementation is that absolutely everything is in the global scope and there is no security on the collections access. This is understandable given the fact that these guys were pioneering React in Meteor at that time.
I checked the repo and a fix is … useless. I estimate at least 50% re-write of the code. I am somewhere at … 25-30% now.
@paulishca good thoughts! We got everything “patched” with the createReactClass approach which I think is good enough for now since this project is kind of becoming an open source community gift from @sacha . Maybe over time, it could be a fun project for people to fork and learn from. It shows the evolution of React quite well
Getting the project updated, stable and running should be goal 1, and then maybe someone might enjoy a bigger refactoring down the road