Hosting MERN Application on Vercel [closed] - reactjs

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 16 hours ago.
Improve this question
Deployment MERN App on Vercel
I've been using Vercel to host several React web applications and it's been great! Recently, I upgraded an existing project with a backend (Express.js and MongoDB Atlas) and I'd like to host it there as well.
I would like to know if the configuration that I've put in my repository is correct in order to make it work on Vercel. Vercel's documentation focuses on serverless deployment, and while I don't mind rewriting my backend if I have to, I'm wondering if there's an easier solution for adding a server/database.
The MERN stack is still relatively popular so I imagine a lot of developers have found a way to host this kind of project. If anyone can help, I would really appreciate it
Here is my repo: https://gitlab.com/narcamarco/project-tours

Related

Can Firebase create a secure SSL connection on an http call so that it will run as if it were https? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 days ago.
Improve this question
I am building an app that tracks the position of the ISS and is pretty much fully developed but when building - the API is an http and not https, which is something I overlooked and its been very hard to get around. Netlify offers a way to do it with _redirects but I'm very confused and have been trying for hours.
Does Firebase have a way to authenticate the http API I'm fetching and then deploy it so it will run normally?

Setting debug=False with Django Rest Framework and React does not work [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I have a project on which I use Django Rest Framework and React.
I also use amazon s3 for static and file storage.
The problem is that when I set debug=False in settings, there is nothing except white empyt page. Have you ever met this problem and what did you do to solve ? Thanks
I solved this problem. In settings.py there is a variable called "STATICFILES_STORAGE = 'storages.backends.s3boto3.S3StaticStorage'". I removed this and all static files uploaded to heroku but my media files run on amazon by the variable called DEFAULT_FILE_STORAGE'storages.backends.s3boto3.S3Boto3Storage'.

Low performance of react app after deployment [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I have worked on my react application and after deployment, there is very low performance of the app
Github repository link
https://github.com/Elue-dev/react-app/tree/main/react-site/react-site
I cloned your repo inside codesandbox and found the problem.
Sandbox link: https://codesandbox.io/s/infallible-oskar-iiyvv
You are loading big images to the front end. Each of your images is more than 2mb in size.
First of all you should compress the images and ideally make really small
Then google the term lazy-loading and implement that in your application

Hosting a NodeJs React app with Lightsail [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am very new with hosting.
I built an app with React, NodeJs, Express. Classic MERN project.
I wonder how to host it ? I read about Amazon Lightsail, but I have to choose OS.
If I pick Ubuntu, will I be able to install Nodejs, npm, host my API with https, etc ?
Thank you for infos guys.
You seem to be asking a few things here.
In terms of how you should be hosting: depending on your goals, Amazon Web Services may be a little more than you're looking for at the moment. If you're just getting started with web hosting and deployment I would highly recommend taking a look at something more straightforward(and free!) such as Heroku. This might help you get a grasp on the process of deployment, and they have a decent getting started guide specifically for node.
That said, if you are certain you'd like to dive in with Amazon Web Services there are several different services available to choose from (including lightsail) that you also may want to consider before continuing.
And finally to answer your main question: Yes, if you choose an Ubuntu distro for an OS you will indeed be able to install npm, node, and all the packages you'll require for your app (likely via a command line interface). I am not personally familiar with the specifics of Lightsail, but they have their own getting started guide you might want to read through for linux setups.

About using eve for python framework in google app engine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Just came to know about a project named python-eve. As I'm just starting out in python, this project seemed kinda easy to get started for building a python based REST API. This framework really has a lot of features out of the box, specifically HATEOAS, which I din't find any built-in way in google-app-engine documentation. So is there anyway I can use this framework in google-app-engine? Or should I just all together ignore app-engine.
Eve is a Flask application, which means that wherever Flask runs, Eve runs... at least in good theory. Check out the following resources:
Google App Engine on Flask mailing list
Flask Google App Engine template
Flying Flask on Google App Engine
I personally have never tried runnning Eve on GAE but the resources above seem to indicate that it should be possible with little effort.

Resources