Open krakxn opened 2 years ago
Yes I ran into this as well when it came time for me to work through this lesson.
What I did was follow the lesson (wrote all code) without trying to run it. Lesson 15 is comprised of three parts. Lesson 15.2 shows how to use a Moralis service to query the blockchain for data. As @krakxn points out, it seems that a Moralis (free?? paid??) account no longer provides that option. Lesson 15.3 uses approximately 85% of the code from lesson 15.2 and is an alternate way of indexing and querying data on a blockchain. So work through lesson 15.2 to have the code for 15.3.
@krakxn mentions there is a way to run a Moralis Server locally, but I just moved on.
Personally, I would rather use whats taught in 15.3 to query data than what is taught in 15.2; what is taught in 15.3, is more inline with the web3 philosophy of decentralization.
aah... crap. I will have to update...
aahhh... what do you think, maybe we just tell people to skip to the graph?? aahhh
feelsbad.jpg...
Maybe some sort of a "notice" as to the relevance of the updated Moralis whilst encouraging the use of it in the course for practice?
I do not think skipping it outright will be viable as people can still go through that for practice (as the logic involved will just be extrapolated in other projects and therefore, will instead serve well for practice purposes); furthermore, as it is certainly the harder part of the course for beginners.
Additionally, the "notice" serves its purpose as for the people strictly using it for its relevance (who, then, can use make-do approaches as above).
Yeah... The front end part is also really good for people looking to build full dapps. I haven't tried out the new stuff. I'll ask Moralis
Yes I ran into this as well when it came time for me to work through this lesson.
What I did, was follow the lesson (wrote all code) without trying to run it. Lesson 15 is comprised of three parts. Lesson 15.2 shows how to use Moralis Server for persistent storage. As @krakxn points out, it seems that a Moralis (free?? paid??) account no longer provides that option. Lesson 15.3 uses approximately 85% of the code from lesson 15.2 and is an alternate way of persisting data. So work through lesson 15.2 to have the code for 15.3.
@krakxn mentions there is a way to run a Moralis Server locally, but I just moved on.
Personally, I would rather use whats taught in 15.3 for persistent storage than what is taught in 15.2; what is taught in 15.3, is more inline with the web3 philosophy of decentralization.
Thanks a lot for this comment! I was debating whether to learn the Moralis V2 way of doing things or no.. and it seems like I can just continue. You saved me (potentially) hours of my time :D
@johnnybieniek I glad someone got something out of that post. Upon re-reading it, I see that I should make a correction.
I tried using Moralis V2 but they don't even have a way to make it work with a local node, not even a testnet. They also deprecated react-moralis
, and now recommend using wagmi
(which I personally find to be better). And since we can't use react-moralis
that means we no longer can use web3ui-kit
since it internally uses the first package.
@krakxn @PatrickAlphaC Well I think the new UI is way different but we can still manually bring the servers. Just go to this link and toggle the servers on: https://admin.moralis.io/dapps/
Also I think with the new UI , moralis provides one server in free tier, so for continuing the course that would be enough.
Reference: https://forum.moralis.io/t/unable-to-create-server-from-ui/19976
So it's fine to just skip ahead and do the "The Graph" part and not worry about setting up Moralis? I've been having a very hard time with the Moralis part, and this lesson is the only I'm missing to finish the course.
As stated in this article: https://moralis.io/how-to-set-up-a-self-hosted-web3-server/
Moralis 2.0 does no longer provide the services of operating your own Moralis server. This article by Moralis goes step by step on how you can set up a self hosted server that is compatible with the 2.0 version of Moralis.
Its a little complicated but if anyone is a Moralis maxi here you can try this instead of skipping to The Graph.
yeah I did setup my own self-hosted server, but it still can use that to achieve the same problem that was solved in the course. I mean with that method. you cannot listen to event on the backend and index them to the moralis database, because it does not exist again. correct me if i am wrong
Hi All, Following up on this, there is no way to create a Moralis server anymore meaning that for people who did not have an existing Moralis DApp, the server creation is entirely depreciated. Hence the only way is to self host with a parse server, MongoDB + redis. I have raised this issue on the matter https://github.com/PatrickAlphaC/nextjs-nft-marketplace-moralis-fcc/issues/22 The new Moralis self hosted is not sufficiently documented at this stage, especially for using streams API to listen to contract events, adding cloud functions etc... It'd be great if the course could be updated with a new tutorial video to address these changes and explain how to integrate the new stack.
@BTT21000 Hello everyone please continue with the graph section until we found a solution for it, Thanks!
You can watch this section to get the information on how it works so later you can continue this with updated things.
There seems to be a major overhaul in Moralis' UI, and numerous people were seeking help (due to the fact that it is completely different than that of the course) in the discussions lately.
Legacy version does not seem to be applicable anymore, and the only way I could find--via the new docs--to host a custom-server was via Express (which I recommended to them).
This might need some consideration as for the people seeking to follow the course.
Use this until then, and if you have a way to use the Legacy one--or any such approaches to keep it as close to the course's content--please comment that out below to help them out.
Good luck! :)
(for doubts, feel free to post in the discussions)