Deploying my web application built using MEAN stack on the web - javascript

I just know that my application isn't static.
I have used this github repository to build my application [https://github.com/jainishshah17/jainishshah.com][1]
It works perfect when i try on local host but I tried to deploy using AWS (Bitnami) and lots of other web hosting platforms but cant seem to find the right one working for me.
Can anyone tell me looking at the repository what would I need to host the app that I built?
Any help will be greatly appreciated.

For a simple MEAN stack App deployment, use Heroku.
Getting Started on Heroku with Node.js

Related

How to deploy a NestJS application which is in a Nx monorepo with CI CD?

I am working on a NestJS application which is part of an Nx monorepo. I tried Vercel, but it conflicted with the deployment of UI apps. Heroku is paid now. I want to learn how to deploy a NestJS application with CI/CD enabled. Whenever there is a push to the main branch, the code should be automatically deployed like NextJS via Vercel. I have been stuck at this for a few days and have tried AWS's EC2, Beanstalk, and Serverless. I am doing something wrong, which is why I keep failing. It would be great if I get a resource on the same. I appreciate any help provided.
I tried to follow Deploying nestjs server created in NX monorepo, but it is completely a different thing.

How to send logs from a heroku app to grafana cloud?

Grafana-Loki is a nice logging service and I want to deploy it for an app on Heroku. I've looked around and there doesn't seem to be too much information about this. I found this twitter thread which references this python repository, but I don't totally understand what's going on. I'm running a small javascript app on heroku, and I want the logs to go to grafana cloud. How do I apply this python code to my situation? I'm not that technical so I get lost easily when applying something to my own situation.
create a python project with the code and deploy it on Heroku
get the logs from your javascript project through heroku
procedure here
as configured in the code from here
it should push the logs to your grafana cloud

How can I deploy a MERN app? Is a shared server on Hostgator not enough?

I currently have a React-only app deployed on Hostgator (I used npm run build then just uploaded the files to cPanel) because it is just a front-end landing page. However, I am planning to add things like logging in and a user dashboard, which will "require" me to use Node.js, Express and MongoDB Atlas.
In this scenario, will it still be possible to deploy the website onto shared hosting on cPanel? It seems to me, from looking online, that this is not possible. In this case, what are my options for other hosting to deploy a MERN stack app on, and what are my options for backend hosting on cPanel that are not Node.js-Express-MongoDB? Do they have their own backend services?
Thank you!
I had the same query and the only solution that I could find was that it is not possible to deploy your MERN app on shared hosting and you need a dedicated server for your applications.
The best and cheaper way to do this is, wrap your application inside a container using Docker and deploy the docker image on a VPS (Virtual Private Server).
Or,
You can also use a separate service for everything that you have to configure yourself and then deploy your app. Kubernetes is the best tool to manage distributed systems.
I hope this helped you.

How to deploy a Next.js App on AWS using nginx

I'm currently following a tutorial on youtube on how to deploy a react app on AWS. He's using gitbash and nginx to do it. The problem is that currently I'm using a prebuilt template from themefor*st and the app they made includes next.js in it. Using this template, when I try to do "
npm run build" it does not provide me with an index.html file inside the build folder which is what the Youtube video tutorial points to, to run the front end on the AWS. I'm new to hosting a website but I think the problem lies in the /etc/nginx/sites-available/default configuration for the location. I look up answers on the internet but couldn't find anything helpful, closest so far are this documentation which I do not understand
https://nextjs.org/docs/advanced-features/static-html-export
I need help and if there are any questions regarding the file, I will try my best to explain them! Thank you
Here's the link to the youtube video I referred to above
https://www.youtube.com/watch?v=rE8mJ1OYjmM

Sending a UDP datagram in an Ionic app

I am trying to build a "server-less chat" app using the Ionic framework. The concept is pretty simple and has been done before, but I'm doing it for a school project. I'm pretty new to Ionic and Javascript in general.
Here's the problem I'm running into:
I'm trying to create a socket and send a UDP datagram (IP multicast) out over the LAN. I've found some Angular.js modules that seem to have some socket functionality, but it appears that they're all geared toward connecting to a server.
I've found this node.js module that appears to do what I want, but I don't know how to get it recognized inside Ionic. I'm sure I'm just missing an include or something. I have node.js installed and have searched through the directories, but haven't been able to find anything referencing the UDP/Datagram module.
https://nodejs.org/api/dgram.html
Any ideas?

Categories

Resources