Technical Questions

Dear Devs, I can’t find a forum to voice out my questions so I’m reaching out here :wave: I appreciate any help I can get :v:

Questions & Concerns:

  • Do we need to learn Python first or have it installed before doing this course?

  • In Filip’s video, he has “localhost:8000” while mine shows the “actual file location” on my laptop.

  • If I use React.js it would show “localhost:3000” is it different? I can’t seem to follow through the “Web3.js Introduction” subsection of this course because of this issue

  • Also does this error (pic below) have anything to do with the concerns I have above? It does not show in Filip’s console but we have the same code.
    image

Hey @CryptoXyz, hope you are ok.

Not really, the only thing you need to know to use python is its webserver, and after installing it in your pc, you just need to run your website with a webserver, and the command is python -m http.server.

Thats why you need a webserver (python), when showing the file location, it is because you open it has a file, not has a website, by running localhost:8000 in a browser (like chrome or firefox), the webserver will use that network ip and port (ip:port = localhost:8000) to show the website.

React use another port for its webserver, i do not understand what is the issue exactly, please explain a little more :face_with_monocle:

I might need to see your code to review that error properly :nerd_face:
Please provide the code in the following way: FAQ - How to post code in the forum

Carlos Z

1 Like

Hey @thecil, I’m fine, thanks for asking! Hope you’re doing great also.

Thank you for answering my questions! It definitely makes things clearer! :100: I’ll start learning the basics of Python for this course.

Here’s the general idea regarding my question:
The console is throwing an error as I mentioned and I thought the problem is related to not having Python installed (so I thought if using React instead of Python could solve the issue).

Here’s my git repo: CryptoKitties

1 Like

Your kit factory is working great for me, might be that you did not start the webserver properly.

image

image

Carlos Z

1 Like

Thank you so much @thecil! I’ll just learn Python to know how to start its webserver, be back soon in this course!

It’s a relief that my kitty project is working :laughing:

1 Like

hey @CryptoXyz dont really have to learn python, just how to initialized a web server. If you are using visual code studio like code editor, there is a plugin for running a web server also. Check it out here.
In this course we are using python only for running a web server but is not the only way to do it. React also have its own server integraded. Thats because you have to start it to run the application.

1 Like

Got it @kenn.eth, Thank you for your help! :100:

1 Like

Thank you all for your help! I just installed python and used its webserver, had some problems with paths and making it work but it’s now up and running!

All problems and questions that I posted were solved! Metamask now prompts you to connect when the website is opened. Thank you all!

:star_struck:

1 Like