Menu

Post image 1
Post image 2
1 / 2
0

I Built My First Backend API in One Evening — Here's

DEV Community: javascript·Bishal Singh·3 days ago
#opYvQR36
#dev#todos#todo#server#params#article
Reading 0:00
15s threshold

__I am learning to code. My tutor taught me how to create an HTTP server using Express, and the same evening he gave me a task — build a basic TODO app using that knowledge. My first thought was — "Is that even possible with this little knowledge?" The answer, as it turns out, is yes. Completely yes. Here is everything I learned, explained the way I wish someone had explained it to me. First, What Even Is a Backend? Before I wrote a single line of code, I had to understand what a backend actually does. Think about a restaurant. You sit down. A waiter comes. You say — "Get me a burger." The waiter goes to the kitchen, gets it, and brings it back. Now map that to the internet — You are the browser The waiter is Express The kitchen is your backend logic The burger is the data When you type a URL in your browser and hit enter, you are placing an order. The server's job is to take that order, do something, and bring back a response. That's it. That's the entire internet in one analogy.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More