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 trial

iOS

how to connect my database server to iOS App

hi,

i am a beginner in iOS development, and to be honest, my education background actually is chemical engineering, so i am sorry if my question seems weird.

so I am learning iOS development using XCode and Swift programming language in intermediate level.

as a backend, the simple way I usually see is using Firebase. but if I don't want using firebase and want to build database server from scratch, what subjects do i have to learn ? I am wondering, how to connect my app with the database on the server. I think the structure is like this.

(my App) --> (PHP/Laravel) --> (Database/MySQL)

if i want to build database server for my app, i have to learn about database design and mySQL first and then learn PHP language and laravel to connect my App to the database

am I right ?

thanks in advance

cheers, Agung

1 Answer

If you don't like Firebase then check out Realm. There are some courses available on here to Pro students. Realm will take care of it for you. You can have a Realm database on the users device and also on your server. Otherwise the learning curve will be very large for you to accomplish what you want to accomplish. Parse is open source now but iOS developers I know have told me its not being maintained well and to avoid it.

https://realm.io/