I Turned A Raspberry Pi Into A Node.js Web Server

  Рет қаралды 113,809

PortEXE

PortEXE

Күн бұрын

Пікірлер: 126
@WebDevSimplified
@WebDevSimplified 4 жыл бұрын
This was really interesting!
@gorgestboi1028
@gorgestboi1028 4 жыл бұрын
Web Dev Simplified oh hey. It’s you!
@mayank_upadhyay_19
@mayank_upadhyay_19 4 жыл бұрын
So, I got it, what you were doin when not uploading the videos ♥️
@bozhidarzhivkov2104
@bozhidarzhivkov2104 3 жыл бұрын
Yeah!
@kylermalachi9644
@kylermalachi9644 3 жыл бұрын
a tip: watch movies at Flixzone. Me and my gf have been using it for watching loads of movies during the lockdown.
@braylenraphael1999
@braylenraphael1999 3 жыл бұрын
@Kyler Malachi yup, been watching on Flixzone for years myself :)
@matijasukovic7040
@matijasukovic7040 Жыл бұрын
Thank you, very straightforward
@kurdm1482
@kurdm1482 Жыл бұрын
press `ctrl+J` to open console tab and do the JS check there, great video
@janidualahakoon4725
@janidualahakoon4725 2 жыл бұрын
great work man. keep it up..!
@shreyasshivakumar8578
@shreyasshivakumar8578 4 жыл бұрын
Amazing! Just what I was looking for! Thank you so much
@seanki
@seanki 4 жыл бұрын
Nice video. The raspberry pi is so powerful
@ServiciosydesarrolloCO
@ServiciosydesarrolloCO 16 күн бұрын
Could you recommend a Javascript course focused on electronics? The ones I've seen are very generic... Thank you very much, great content!
@MainlyWebStuff
@MainlyWebStuff 2 жыл бұрын
Nice little video and good overview, thanks.
@andres154525452
@andres154525452 4 жыл бұрын
Missed the full tutorial and some explanations for noobs like me...
@Will-rm3ki
@Will-rm3ki 3 жыл бұрын
This is awesome man thanks.
@warrior16546
@warrior16546 4 жыл бұрын
Wow, what a high quality video! Nice work ensuring that the video and audio quality are top notch! It's exciting seeing what people are doing with the latest Raspberry Pi! Would you happen to know of any benchmarks for how Raspberry Pi 4B performs with number of requests on a Node server?
@mikolajwojnicki2169
@mikolajwojnicki2169 2 жыл бұрын
Probably depends on a bunch of factors such as the complexity of your server, your internet connection, if you use an SD card or an SSD for possible data storage, if you overclock your Pi and if you use the lite or desktop version of the OS. I am interested myself. I just started getting into web development so I'll probably test this in the future and maybe remember to reply :)
@mikolajwojnicki2169
@mikolajwojnicki2169 2 жыл бұрын
Well... I ended up spending the whole evening figuring this out. My conclusion is: for a simple "hello world" page it can handle up to about 600 requests a second. I have no idea what is a proper way to test this, I just tried sending a get request every couple miliseconds in a loop. Above 600 requests a second the response time often got long and it could even stop working. I used Express.js, the desktop version of the OS and did not overclock (regular 1.5 GHz RPi 4B)
@Fullflexno
@Fullflexno 4 жыл бұрын
Seriously man, this video was so dope🔥
@zlrivo
@zlrivo 4 жыл бұрын
Oh my god thanks for showing the Remote SSH Plugin this is going to be so useful since I used to code on pi itself using nano ^^'
@unsound-methods
@unsound-methods 3 жыл бұрын
dude you are hardcore :D
@zlrivo
@zlrivo 3 жыл бұрын
@@unsound-methods yeah it's way better to code on vs code
@genkiferal7178
@genkiferal7178 3 жыл бұрын
micro is a terminal editor and has the common commands (ex: control+S for save) just like most editors. It should be able to completely replace nano, I think. I beleive you can also use it split screen (one half of the window for your PC and the other half for Pi - at same time). I am new to it.
@zlrivo
@zlrivo 3 жыл бұрын
@@genkiferal7178 thanks for the fact
@DEV_XO
@DEV_XO 4 жыл бұрын
Amazing mate, this is what I was looking for :)
@realmajed_
@realmajed_ 3 жыл бұрын
Bro i was having issues updating Node... THANKS FOR THIS LOL
@vladventura1928
@vladventura1928 4 жыл бұрын
Oh good stuff, actually what I was looking for. I'm planning to build something with a raspi 4, rgb strips and Flutter. Thank you! P.S: That file system is really cool as well... now you got me wondering if I should give this a shot in tandem with the rgb thing
@HardcoreNacho
@HardcoreNacho 3 жыл бұрын
You do realize the tabs you cut off are what is used to remove the sticky part later right?
@PortEXE
@PortEXE 3 жыл бұрын
Yes, that was intentional.
@OmarGarcia-zx2yl
@OmarGarcia-zx2yl 4 жыл бұрын
So here I am having no idea what this genius is doing
@CharleyCheno
@CharleyCheno 4 жыл бұрын
same
@unrealbot3027
@unrealbot3027 4 жыл бұрын
He just created a personal server where he stores data about his webpage(s) which users can access by requesting. For example - suppose his website xyz.com is a music downloading page. He stores all the actual music files in his raspberry Pi server and keep it switched on all the time for the server to function. You visit xyz.com and request to download a music file , your browser requests his raspberry Pi to let you download the requested file.
@jeff6555
@jeff6555 6 ай бұрын
It's such a strange thing for me to get hung up on, but you really should have trimmed the other end of that command strip. The tab you snipped was for removal :)
@jimreiter2648
@jimreiter2648 3 жыл бұрын
Square pin is indeed pin 1...industry standard....
@surbhigoel175
@surbhigoel175 Жыл бұрын
I am not able to install node js in my rpi using the same commands as you did. Can you help me with the updated command for installing nvm?
@pantojabenito3225
@pantojabenito3225 9 ай бұрын
If i turn of the raspberry and then turn on the. This will launch the server automatically?
@harshithtunuguntla1861
@harshithtunuguntla1861 2 жыл бұрын
Which terminal are you using? I can see multiple terminals option...
@pakistanigymers2k22
@pakistanigymers2k22 4 жыл бұрын
Thanks
@PwnKilla
@PwnKilla 3 жыл бұрын
Silly question would you gain anything from implementing Kubernetes onto your RaspberryPi ? I'm trying to figure out what project to do and don't really understand what Kubernetes is for/ what is useful about it
@getzybaggins
@getzybaggins 3 жыл бұрын
I suggest looking into docker, kubernetes is more for docker management
@chomkypanda
@chomkypanda 3 жыл бұрын
This is cool! What would you use a web server for?
@soulninjadev
@soulninjadev 3 жыл бұрын
backend for a website, API etc
@genkiferal7178
@genkiferal7178 3 жыл бұрын
your own VPN, your own cloud service such as NextCloud, your own media (I want mine for music), your own web site....
@savashzaynal6502
@savashzaynal6502 3 жыл бұрын
Omg I was just looking at rpi proj but found out exactly what I want, which is a way to transfer media from my phone and store it in a file server which I can browse.
@SamiKhan-sb5ik
@SamiKhan-sb5ik 3 жыл бұрын
Advantages of own server???
@user-rp9iis1en6h
@user-rp9iis1en6h 4 жыл бұрын
Cool video. Can you please let us know something about the installed nodejs web server's performance? I am planning to buy one pi to setup such server but I'm very confused thinking its performance, reliability's comparing to the paid hosting services. Also, webserver should running 24x7, so can this little boy do this for 24x7 continuously?
@PortEXE
@PortEXE 4 жыл бұрын
If you’re needing a production server where there will be users who need reliable speed and uptime, I would say don’t use the Pi, UNLESS you know what you’re doing.
@OurPastSecrets
@OurPastSecrets 4 жыл бұрын
Do you have a static up to access it publicly or is it just for local use
@PortEXE
@PortEXE 4 жыл бұрын
It’s only for local use right now
@anirbandas12
@anirbandas12 4 жыл бұрын
why not use Noobs Lite and Raspbian Lite when ur going 2 use SSH to control ur pi?
@PortEXE
@PortEXE 4 жыл бұрын
I actually plan to use it for all sorts of purposes
@nightshocker6908
@nightshocker6908 2 жыл бұрын
great video. i looked up the droppy file server and the person whom made it is not working on it anymore with the last time being 2020. do you know of a good replacement that is still supported and is as simple and good like droppy?
@gamerneversleep4200
@gamerneversleep4200 3 жыл бұрын
idk why u install raspberry pi desktop when u r just going to use ssh.
@abduljamac
@abduljamac 4 жыл бұрын
Are you required to leave the raspberry pi on all the time or can you turn of the power when your not using it?
@PortEXE
@PortEXE 4 жыл бұрын
You can turn off the power when you're not using. It's suggested to set up your Node server and/or file server to boot automatically with the OS so that it's truly "Plug and play".
@abduljamac
@abduljamac 4 жыл бұрын
@@PortEXE what do you mean boot automatically?
@PortEXE
@PortEXE 4 жыл бұрын
You can write a bash script that will boot the server up automatically when the device powers on. If you ever need help with that, feel free to reach out to me when the time comes.
@abduljamac
@abduljamac 4 жыл бұрын
@@PortEXE will do thank you
@yt-sh
@yt-sh 4 жыл бұрын
@@PortEXE you should make more useful video like this!!
@uasutakasaona4920
@uasutakasaona4920 3 жыл бұрын
Is this the same project as using a web interface for your Raspberry Pi?
@aaomms7986
@aaomms7986 2 жыл бұрын
i've some question about Droppy account how can i create Droppy account?
@LoveNX123
@LoveNX123 4 жыл бұрын
Nice video! How did you get your windows cmd to not suck and actually look appealing?
@PortEXE
@PortEXE 4 жыл бұрын
I am using the new Windows Terminal. It's not installed by default, but you can get it from the Microsoft Store. Takes a little bit of customization to get it to look good, but it's pretty straightforward.
@LoveNX123
@LoveNX123 4 жыл бұрын
@@PortEXE Thank you :)
@kevinmartinez55
@kevinmartinez55 3 жыл бұрын
Is it possible for you to change the web address?
@thenetanel1996
@thenetanel1996 3 жыл бұрын
how fast are the responses?
@rohitchowdhary618
@rohitchowdhary618 3 жыл бұрын
Which cmd r u using
@sumitsinghdeode2138
@sumitsinghdeode2138 3 жыл бұрын
Can I acess it over internet?
@jundilab1695
@jundilab1695 2 жыл бұрын
It's great tutorial but, how to add the domain name
@WesleyFranks
@WesleyFranks 3 жыл бұрын
Why no hard line? No RJ45? No Ethernet cable?
@deepneon
@deepneon 3 жыл бұрын
heard of WiFi?
@genkiferal7178
@genkiferal7178 3 жыл бұрын
that is also my concern, but maybe since he only uses the Pi at home, he doesn't need that? I am looking for a new room to rent and am worried about the whole Ethernet cable issue since I hope to learn to use the pi server outside of the home and maybe even put a small website up.
@lordsqueeb7827
@lordsqueeb7827 4 жыл бұрын
best way to serve this?
@narcissisticnarcissus4956
@narcissisticnarcissus4956 4 жыл бұрын
How to host my own domain on this server?
@aleph7024
@aleph7024 4 жыл бұрын
In case you have a static ip address, you should use your modem DMZ option, add MX zones to your raspberry pi and also your own DNS, using cloudflare will make it easier for you to do so. DDNS would be another option which is not 100% errorless.
@CharleyCheno
@CharleyCheno 4 жыл бұрын
How to host my own domain on this server?
@aleph7024
@aleph7024 4 жыл бұрын
@@CharleyCheno just replied the same question in the above reply, 2 months ago :)
@Someone-ju7sx
@Someone-ju7sx 4 жыл бұрын
How to host my own domain on this server?
@aleph7024
@aleph7024 4 жыл бұрын
@@Someone-ju7sx lol
@supremegangcertifiedleader3916
@supremegangcertifiedleader3916 3 жыл бұрын
How do I host a website tho? and giving it a domain name?
@narcissisticnarcissus4956
@narcissisticnarcissus4956 4 жыл бұрын
Not really a tutorial unfortunately. Could you make a quick step by step tutorial, please?
@PortEXE
@PortEXE 4 жыл бұрын
This was just a fun little project I did. I have no plans on making a tutorial for this project. Perhaps in the future I may do something similar however.
@tristanzaleski4583
@tristanzaleski4583 2 жыл бұрын
Me looking down at my megaminx... Me looking around at my monitors and LED lit desktop setup... Me looking at my systems domain name, while you refer to your setup as 'the Lair'... WHO ARE YOU AND WHY ARE YOU IN MY HEAD?!?!?!
@ThunderstruckElectronix
@ThunderstruckElectronix 4 жыл бұрын
3:00 why did he do whatever he did there?
@PortEXE
@PortEXE 4 жыл бұрын
It’s to check and make sure that the file hasn’t been modified by a nefarious 3rd party. Hackers can be clever, so checking the hashes is always a good thing to do.
@ThunderstruckElectronix
@ThunderstruckElectronix 4 жыл бұрын
@@PortEXE ok cool. Ty for answering 👍
@younesidsouguou7287
@younesidsouguou7287 3 жыл бұрын
That's a great showcase of the RPi 4 features, except for the limited storage on the SD card. Which hints sticking some extrenal USB 3.0 hard drive next to it.
@PortEXE
@PortEXE 3 жыл бұрын
Yeah without an external drive it wouldn't be recommended to use as a file storage server, but it would work fine for a web server for serving web sites.
@karandidwani
@karandidwani 4 жыл бұрын
But this will only work on your local network Its no way connected to the outside of the world right? When you would be in your home network you can use this as a web server But it doesnt solve any purpose if the "web" server is not open to the internet
@PortEXE
@PortEXE 4 жыл бұрын
You’d just need to do some configuration to open it to outer networks. I plan to mainly use this web server for development on my local network.
@this.channel
@this.channel 4 жыл бұрын
You will need to open a port (usually 80) on the router to make it a web server. Be careful though, you need to secure the pi first. Here is a good starter www.raspberrypi.org/documentation/configuration/security.md You might want a dynamic dns service too, if you don't have a static public ip address. There are free and paid ones. Modern router admin usually had settings to configure them, but if not, you can use something like ddclient.
@joostschuur
@joostschuur 4 жыл бұрын
If you just need to temporarily share a site you're working on with someone and don't want to change your router config, you could also use ngrok or localtunnel. If you're using their free tier, the URL would just change every time you start it up.
@marcelkrause5293
@marcelkrause5293 3 жыл бұрын
You have a huge command center but don't know how to setup a raspberry pi without monitor and keyboard attached? One can do all the config with config-files on your sd-card.
@TungVu-jm1eo
@TungVu-jm1eo 3 жыл бұрын
Can we put this website online?
@PortEXE
@PortEXE 3 жыл бұрын
Yes although it would require further configuration.
@abhijeet800
@abhijeet800 3 жыл бұрын
thanks bro i do not know what I am doing but it worked thanks.
@lemonbibu8990
@lemonbibu8990 4 жыл бұрын
Would that just be like a Google drive
@Adi-ss9vn
@Adi-ss9vn 4 жыл бұрын
It will have more functions than GDrive. Forwarding the port will make it accessible from anywhere in the world.
@ilearncode7365
@ilearncode7365 3 жыл бұрын
But muh "Oh noes, they will do hax if you open port 80!!!"
@PortEXE
@PortEXE 3 жыл бұрын
😂
@Dogeater300
@Dogeater300 3 жыл бұрын
How much file can the server hold? As much as the SD card?
@PortEXE
@PortEXE 3 жыл бұрын
Yes as long as that’s how you’re Linux file system is set up. Which it should be by default.
@kingofthepod5169
@kingofthepod5169 3 жыл бұрын
There was a mod for the pi 3 where you flash an update to it to boot from USB (& Ethernet). I did that and I got it running from a flashdrive .
@genkiferal7178
@genkiferal7178 3 жыл бұрын
@@kingofthepod5169 ? you mean your booted into a live USB OS like you can on a PC? I am new and learning. DOn't want to make costly mistakes and buy the wrong thing(s).
@MedyGames
@MedyGames 4 жыл бұрын
I never found a good enough reason so far to get a pie ... Since Everything can be installed and run on my pc... Lets be honest here .. the pc is mostly running anyway .. So why use a second device that has little to no purpouse .... Especially with other options like dropbox .... gdrive etc ..... which can serve as a bridge with zero cost or installation ...
@MedyGames
@MedyGames 4 жыл бұрын
that being said ... I wiill probably give in one day and solve some problems that don't exits as well.. to get some linux / cmd exposure.. Even talking to friends that own a pie ... their only reason seems to being free of "the cloud" ... and to fiddle togehter stuff for fun and for the sake of fiddling xD... which is a good honest reason ;) ....
@PortEXE
@PortEXE 4 жыл бұрын
I'd say portability of it is another thing to look at. You could even set it up to work with a network coming from your phone if you have a hotspot capable phone. At that point you have a portable web server on a portable network. I'd research web security first though if anyone ends up being interested in that idea.
@MedyGames
@MedyGames 4 жыл бұрын
you dont need a rasperry / node js to create a fileserver from your phone.... there are phone apps for that .... so you could acces your phone directly from your pc .... that way you dont need a webserver either to upload things xD as I said ... solving problems that dont exists
@PortEXE
@PortEXE 4 жыл бұрын
Oof. Okay 👍
@MedyGames
@MedyGames 4 жыл бұрын
@@PortEXE I dont wanna sound discouraging xD ... Its just that when I think of getting a pie ... I cant lie to myself that the idea I want to set up ... can totally be solved in another way .. which most of the time make a solution involving a pie totally a waste of time xD... Though if you find yourself smth that you cant achieve otherwise ... I would be the first to jump on a pie in a hearttbeat xD ... I may be an oddball ... as im even running iobroker on my pc ... xD .. in a sense .. nothing is happening when my pc is not on anyway .. maybe that is different for you .. or maybe you just wanted a pie and created a solutuion that is not neccecary^^
@WanderingNasi
@WanderingNasi 3 жыл бұрын
Awesome content, but that intro beat is whack
@Tyrone-Ward
@Tyrone-Ward 2 жыл бұрын
Where was the Node.js server tutorial? You spent 5 minutes setting up the Raspberry Pi and about 30 seconds not showing us how to do anything in Node.js,
@PortEXE
@PortEXE 2 жыл бұрын
This was not a tutorial. It was just a fun project that I took on and decided to document.
@AlexWayne97
@AlexWayne97 4 жыл бұрын
No entendí
@elozm7962
@elozm7962 3 жыл бұрын
pleas look normel at the camera look scary just look tho the resberry pi thats les scary than you keep loking at the camera
@markspc1
@markspc1 3 жыл бұрын
No security at all; hacker's playground !
@PortEXE
@PortEXE 3 жыл бұрын
This is a local development server. It’s not open to the outside.
@christophhandschuh6304
@christophhandschuh6304 3 жыл бұрын
I built a Mini Server with a Raspberry Pi Zero. It has an 1.3" Oled Display and an Rotory Encoder. I also wrote a Python script which displays the current stats(CPU, Disk...) and there is also a menu where you can go throw all the files and start NodeJs scripts. You can have a look here: www.thingiverse.com/thing:4935803
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 969 М.
Turn your Raspberry Pi into a Web Server
7:21
Make Tech Easier
Рет қаралды 127 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 16 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 27 МЛН
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 7 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 71 МЛН
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Рет қаралды 3,6 МЛН
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 1,2 МЛН
The ULTIMATE Raspberry Pi 5 NAS
32:14
Jeff Geerling
Рет қаралды 2,4 МЛН
Raspberry Pi versus AWS // How to host your website on the RPi4
8:39
Create the Ultimate Human-To-Web Device | Raspberry Pi Kiosk Mode
12:43
Core Electronics
Рет қаралды 25 М.
The TOP 3 uses for a Raspberry Pi!!
12:07
NetworkChuck
Рет қаралды 1,5 МЛН
6 Great Raspberry Pi 5 Projects to try in 2024!
5:20
ToP Projects Compilation
Рет қаралды 66 М.
Tutorial: Control Raspberry Pi GPIO via HTTP Web Server
7:19
Software Sage
Рет қаралды 62 М.
Full video - Data recovery from a dead MicroSD card
16:01
DevelopAKR
Рет қаралды 421 М.
Build A Raspberry Pi NAS For $35 Using All New Parts
11:24
Michael Klements
Рет қаралды 709 М.
Как деталь лего застряла на 26 лет в носу???
0:34
Время знаний
Рет қаралды 1 МЛН
Штука для будущих мам 🤰 и пап 🫃
0:37
Сан Тан
Рет қаралды 2,1 МЛН
Зу-зу Күлпаш 2. Жазушы.
41:56
ASTANATV Movie
Рет қаралды 377 М.
Genius trick - disappearance TicTac
0:23
Super Max
Рет қаралды 29 МЛН
Письмо Деду Морозу
0:31
ЛогикЛаб
Рет қаралды 1,7 МЛН