---
title: "Comment by Bedig Galladian on \"Deploying MERN to Heroku (success)\" | Hashnode"
description: "Hi, Great tutorial, I&#39;ve successfully deployed my app, but there is no CRUD functionality. Can you provide any insight as to why? There seems to be little c"
url: "https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3/comment/59485483fabd529b73565bd5"
---

[Discussion](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3)

Comment [Deploying MERN to Heroku (success)](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3)

[Bedig Galladian](https://hashnode.com/@bgalladian)

[Jun 19, 2017](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3/comment/59485483fabd529b73565bd5)

Hi,

Great tutorial, I've successfully deployed my app, but there is no CRUD functionality. Can you provide any insight as to why? There seems to be little consensus as to why that is, and with fewer solution. Any help would be appreciated. Thanks!

kicksstarter.herokuapp.com

[Jake Foraker](https://hashnode.com/@jakeforaker)

[Jun 20, 2017](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3/comment/59485483fabd529b73565bd5#reply-5948681293a85b7a055d3f28)

You are pointing your api to localhost:

[cl.ly/3P0C1R1C1Y1o](https://cl.ly/3P0C1R1C1Y1o)

[Bedig Galladian](https://hashnode.com/@bgalladian)

[Jun 20, 2017](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3/comment/59485483fabd529b73565bd5#reply-59487d31fabd529b73565bf0)

Oh crap missed one, which mLablink should I put in there?

[Jake Foraker](https://hashnode.com/@jakeforaker)

[Jun 23, 2017](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3/comment/59485483fabd529b73565bd5#reply-594c822c5f4dd6ff593b21f7)

You shouldn't connect to your database via a GET request. It is bad practice and not recommended:

[docs.mlab.com/data-api](http://docs.mlab.com/data-api/#overview)

"The first method - the one we **strongly** recommend - is to connect using one of the [available MongoDB drivers](http://docs.mlab.com/connecting/#drivers). You do not need to use our API if you use the driver. In fact, using a driver provides better performance, better security, and more functionality.

The second method, documented in this article, is to connect via mLab’s RESTful Data API. **Use this method only if you cannot connect using a MongoDB driver**."

Your api is presumably in your heroku app, so you just set is as a relative path to the root. This is handled in server.js and you shouldn't have to change it: [github.com/Hashnode/mern-starter/blob/master/serv…](https://github.com/Hashnode/mern-starter/blob/master/server/server.js#L58)

You might to modify the start script in package.json and set the env to production like NODE\_ENV=production. See step 5 in the tutorial above.

[Bedig Galladian](https://hashnode.com/@bgalladian)

[Jun 23, 2017](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3/comment/59485483fabd529b73565bd5#reply-594d384de885a547a39911e5)

I'm going to try this when I get a chance, thank you so much!
