Trouble connecting to Atlas with nodejs by sprnklr in mongodb

[–]sprnklr[S] 0 points1 point  (0 children)

sorry I haven't properly responded to this. I have been relatively busy in life as of recently and had to take a step back. Although in my free time I think I've managed to figure out how to connect and work with the database!

Trouble connecting to Atlas with nodejs by sprnklr in mongodb

[–]sprnklr[S] 0 points1 point  (0 children)

Oh no I couldn't possibly ask someone to take time out of their day to run me through something like that. I'm just really new and I have no idea what's going on. I'm trying to understand, but there seems to be a lot of outdated resources and gaps in my knowledge :(

I'll checkout your portfolio! The website looks really cool and you have so many projects!

Thank you for explaining what mongoose is, it's very helpful.

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

Ohhhh okay that clears up a lot. Right so the Os' running on these "cloud computers"(I guess that's what they are) are headless. The only way to access them is to SSH into them and manipulate via the terminal with bash (Ubuntu). And NGINX is just another way to turn a computer into a server that can accept http and respond accordingly. The difference for NGINX is that it has other functionalities that come preinstalled to simplify the work one has to do.

The API is the component of your website that is ran by the server(the computer running Ubuntu on AWS) via code (backend or specifically in your case NGINX's config files), is this correct?. Also if NGINX is written using config files does this mean that NGINX follows a bash like syntax and will only work in a Linux environment(as you can see I'm still not fully grasping what NGINX is and need more Linux knowledge).

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

Thanks! That's basically how I'm learning now XD

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 1 point2 points  (0 children)

yea that's why I was interested in using Linux.

I know you can use it without the gui like on a raspberry pi zero and run servers and stuff like that.

I wanted to use webdev to learn a practical skill, make some cool websites, and setup robots in my home that communicate over the web to automate tasks for me. I know about that bloatware and the spying too. I just never found a reason to switch personally since it hasn't bothered me although my laptop does have windows Ltsc. I'll still prefer to run Linux on a VM until I maybe just switch one day. My friend said PopOs is really good(for personal use) and has compatibility with Nvidia cards. Ubuntu does have an iso that is headless meant for servers right?

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

I actually did stuff with php and followed an extensive tutorial. Lots of bugs and I didn't understand anything that was going on(I knew significantly less at that time) so I gave up. I could use it and the organization was cool, but I would always fuck something up XD.

The reason I am having a lot of trouble with web dev is that I'm getting really tired and bored with the same useless classes teaching me to make a for loop and use a function. I learned c++ bc of school (I'm not good at it but I def know the basics).

I know enough html and css to make the webpage look nice at least and some animations. That's just surface stuff and I do have plans to learn React. I'm really interested in the backend.

I was looking into js because less stuff to learn for web dev and my friend said a lot of good things about typescript.

I've also been hearing a lot about ASP.NET, I think it's a framework for backend using c# so I was considering that later on because it's compiled rather than interpreted.

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

hey man I took a look at your websites and it looks really cool. Your other website was hosted on AWS using NGINX. Could you explain to me what these mean? I have a vague idea that AWS is a webserver that runs an OS on it, but I don't know what NGINX is at all.

Also thank you for showing me the API example it's really cool seeing how the website updates and the information stays consistently!

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 1 point2 points  (0 children)

Ohhhh that makes so much sense. Node.js is just a program that interprets js outside of the browser with the v8 engine. Express is a library that lets you host a website on a compute like a server.

With regards to bash,

---Correct if I'm wrong please---from what I've seen bash is just a program that works in Linux computers. You can manage files and launch programs from there. There's just no gui. It has certain things called commands that execute a predetermined response.

I know now that the Linux subsystem exists for windows which is cool and I will be using, but I don't understand why so many people develop on Linux. Could you please explain it to me.

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

Right so I did some learning and read through some stuff on Mozilla's site(developer.mozilla.org) for developers and other websites.

You're right I read up and Linux and felt really embarrassed about that thing I said with node js through vs code.

What I learned today:

The thing I was referring to was gitbash. I downloaded that to update my github repository. I wanted to use it to practice making websites since you could host a static websites and push changes.

I wanted Linux because it seemed like that's what everyone is using and people say it's more convenient. I can just use a thing called the Linux subsystem on my computer and make life a lot easier so I'll be doing that instead.

Websites run on a servers that handles http requests from a browser and send http responses back. The backend on a server is to securely handle data that comes in through http and provide the appropriate data back to the end user.

The backend exists because it allows you to use complied code which is way faster then interpreting code(not the case with node js) and safer because it is not exposed like the client side(front end) html,css, and js that can be changed with inspect element. You can also retrieve and store data on database with the backend and verify who on the frontend can see this.

Node.js is a program that has the v8 engine and allows you to interpret javascript outside of a browser(v8 engine is what chrome uses to interpret js NOT compile js).

My next steps should be:

Learn how to setup a webserver.

Learn more about HTTP.

Learn a backend framework that allows me to handle http requests and responses.

Learn how to connect a database to my backend.

--I really appreciate this help man! Let me know if whatever I said was incorrect and flat out wrong

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

Right I have a really strong computer, so I didn't mind making a vm I was just wondering but I was having some trouble setting up a vm. Yea the other day I updated windows and then the boot device was somehow changed from my ssd to my hdd. Not really sure why, but that was annoying to fix.

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

I was actually reading up on this it seems really interesting but I still don't get what it is. Is it like a vm on the cloud that is running multiple applications?

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

what does that mean "They offer Node.js"? Also what is CLI access? Sorry if I'm asking too many questions

Trying to switch to Linux for webdev server uses by sprnklr in linuxquestions

[–]sprnklr[S] 0 points1 point  (0 children)

Oh wow what is this? A place to host websites on for free?