How to deploy Frontend ReactJS and Backend Mongoose Mongodb?

PLEASE help us help you by writing a good post!

  • we need to know your netlify site name. Example:
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot

The better the post - the faster the answer…

I have a frontend website and backend database written in ReactJS, GraphQL, and MongoDB with mongoose and expressJS. The solution does not employ CORS.

The front end runs on Localhost:3000 and the backend runs on Localhost:4000

How do I deploy this on Netlify?

@javakian1 If you haven’t already you can read Netlify’s documentation here

To deploy the frontend website it should just be a matter of hooking up the repository and configuring the build settings.

For your backend you won’t be able to host an express server with Netlify, nor a MongoDB instance so you’ll need to look elsewhere for the hosting requirements of the backend website, (for example Heroku), if you don’t plan on changing it.

Instead of a dedicated express server, and depending on your actual requirements, you may be able to adjust your site to leverage Functions.

Here’s a blog article I found via a quick Google, that references working with MongoDB and Netlify Functions: