Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialpatrick tagliaferro
5,399 PointsAdding to Parse.com from custom CMS
This is just a general question, but I created a iOS app using parse.com as the backend database. There are 2 different classes in the database I pull info. Would it be possible to make a custom CMS to add data to these classes so I could use my own domain and not go through parse??
2 Answers
Stone Preston
42,016 Pointsyeah you could. You could use JSON and have your app parse that JSON data from your site into the app. Parse makes everything so easy and abstracts everything that is going on so its very simple and easy to use. Doing it yourself is a bit more complicated. Ray Wenderlich has some decent tutorials on building your own backend for your app
patrick tagliaferro
5,399 PointsYa, kind of cross platform. The app is having users that sign up from the app but some of the data such as "agents" (a parse class) is being supplied by the client. If they need to add a new "agent" to the list getting pulled from parse I thought it would be nice to go to their own site to manage this list as opposed to going to parse.com and adding a new row to the class.
patrick tagliaferro
5,399 Pointspatrick tagliaferro
5,399 PointsThanks I was just talking about using parse but adding objects to certain classes from a custom website so clients would not have to log into parse.com to add a new object in the "a" class. I see now that you can do this with the REST API. Is that correct.
Stone Preston
42,016 PointsStone Preston
42,016 Pointsyes thats correct. but if you have your iOS app why dont you just use that to add the data? why do you want to bring in this other site out of curiosity? are you wanting to have cross platform (iOS and web) app or something
patrick tagliaferro
5,399 Pointspatrick tagliaferro
5,399 PointsYa, kind of cross platform. The app is having users that sign up from the app but some of the data such as "agents" (a parse class) is being supplied by the client. If they need to add a new "agent" to the list getting pulled from parse I thought it would be nice to go to their own site to manage this list as opposed to going to parse.com and adding a new row to the class.
Stone Preston
42,016 PointsStone Preston
42,016 Pointsbut why not just handle adding the agent in your app itself? just have a form the user fills out and use that data to create a new "agents" object then save that object to the backend
patrick tagliaferro
5,399 Pointspatrick tagliaferro
5,399 PointsJust because I dont want the users to be able to add the agents data, that would be an admin only thing the company who would run the app would handle. I figured it would be easier for the company to add data to their app from a site. Is this not good practice?
Stone Preston
42,016 PointsStone Preston
42,016 Pointsoh ok ok that makes sense. I see what you want to do now. Um I cant really speak to if its good practice or not. I would think it would be better to allow admin users to add agents within the app, and not allow regular users to. so you could have a + button thats hidden if the user is just a regular user, but unhides if the user is an admin. But thats just what I would do. You definitely dont want to allow them straight access to the database by logging in to Parse.com. definitely dont want that