Skip to content
← Back to Community
Repl Hosting and HTTP requests
Profile icon
CoolJames1610

How to do? xD

I wanna create an online game and this is the solution ive found but idk how to do it

thanks

Answered by Baconman321 [earned 5 cycles]
View Answer
Voters
Profile icon
MaxMonahanDEV
Profile icon
CoolJames1610
Comments
hotnewtop
Profile icon
Baconman321

Can you show me the solution, also in detail?

Profile icon
CoolJames1610

When i said solution i meant hosting and http requests but idk what im talking about :( @Baconman321

Profile icon
Baconman321

@CoolJames1610 Ok, do you have a game you are working on currently?

Profile icon
CoolJames1610
Profile icon
CoolJames1610

im trying to use sql to store data @Baconman321

Profile icon
Baconman321

@CoolJames1610 How familiar are you with coding?

Profile icon
CoolJames1610

with python - ik the basics as im doing it for gcse but nothing much past there @Baconman321

Profile icon
Baconman321

@CoolJames1610 Ok I am sorry, I cannot really help with python, however, I can explain what HTTP requests and hosting are. Basically HTTP requests are for whenever you want to talk from a client (usually HTML) to a server (could be PHP, Python, node.js, Go, e.t.c). Http requests allow communication between the two, such as getting form data (inputs and such). Hosting is where you have a SQL database in which you store and get info. This is usually stored in data files. Hosting would be good if you want to do something like high scores. There could be a lot of alternatives to SQL because it is tedious and hard to do. However, I recommend you learn a bit about how it works before deciding to do that. Because Python is a backend server, that means you can store files there. If this answers your question, then please mark it as answered.

Profile icon
CoolJames1610

Ok thanks ! @Baconman321

Profile icon
AmazingMech2418

@Baconman321 Well, hosting is actually just any way you connect a server to the Internet through a domain. For example, Repl.it hosts websites created on Repl.it through repl.co domains. However, it is not always including the server like how in GitHub Pages, you can only host the client-side part. Hosting is really just putting your website on the Internet in some way or another. Also, SQL (Structured Query Language) is a database management tool, but there is also MongoDB, and you could even just create an encrypted JSON file to work as your database. Finally, HTTP stands for HyperText Transfer Protocol and is really just the sending of messages between the client and server using the Internet. However, of course, there are other transfer protocols such as TCP, UDP, SSH, FTP, etc. However, usually HTTP is just a TCP/UDP connection on the web. This is why if you run nmap, it will result in something like "80/tcp" although it is an HTTP port.

Profile icon
Baconman321

@AmazingMech2418 Three things. One: Ok I didn't know that about hosting. Two, that's basically what I said about HTTP requests. Third, with the JSON, that's what I meant by store files (however, I didn't specify sorry).