As every iOS developer, sometimes I feel that for a new app I’d better have a back-end: some simple server that will store data and pass it to client on iOS in some specific shape. Since Swift became open source, laziness no longer has excuse.
In this series of tutorials back-end for imagnery iOS app is created. It is deployed to cloud, stores data in PostgreSQL database and responds with JSON with this data. Structure of responses is defined by mustache templates.
Chapter 1 — make Perfect respond with mustache
Chapter 2 — connect PostgreSQL database, respond with data stored in db
Chapter 3 — deploy to Heroku
Chapter 4 — the final one, make PostgreSQL work on Heroku
Code on github for all chapters: CatFoodServer
If you've noticed any mistake, please let me know, in order to prevent somebody from breaking his keyboard like I did investigating mysterious web development universe 🍻
As every iOS developer, sometimes I feel that for a new app I’d better have a back-end: some simple server that will store data and pass it to client on iOS in some specific shape. Since Swift became open source, laziness no longer has excuse.
In this series of tutorials back-end for imagnery iOS app is created. It is deployed to cloud, stores data in PostgreSQL database and responds with JSON with this data. Structure of responses is defined by mustache templates.
Chapter 1 — make Perfect respond with mustache
Chapter 2 — connect PostgreSQL database, respond with data stored in db
Chapter 3 — deploy to Heroku
Chapter 4 — the final one, make PostgreSQL work on Heroku
Code on github for all chapters: CatFoodServer
If you've noticed any mistake, please let me know, in order to prevent somebody from breaking his keyboard like I did investigating mysterious web development universe 🍻