-
Notifications
You must be signed in to change notification settings - Fork 944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial for contest: Swift, Perfect, mustache and PostgreSQL on Heroku #162
Comments
@abjurato Thanks for the tutorial! I found one small issue In chapter 1 the mustache template specifies quotes around the responder name. The quotes will cause an error that could be difficult to debug. The code in the sample repo is correct. |
@whatisinternet oh, my bad, sorry. Fixed, and thanks a lot! |
Thank you for the tutorial, appreciate it! In my understanding, you are using mustache to respond json. Have you tried encode dictionary to json string and then respond the json string directly? Because when I tried to encode and respond, I encounter some obstacles. |
@qizt I've decided that for my purposes mustache will be more comfortable, but using JSONEncoder should not behave with Perfect in any specific way |
hy i have tried to deploy my perfect code with heroku but stuck on one point :- |
@Aishly almost 2 years passed since this tutorial was published, Perfect changed a lot and I haven’t touched new versions, so not sure I can help much. Your problem is: Perfect app can not be compiled on Heroku’s machine. Try looking in that direction, cuz error message says “only Ubuntu 14.04 is supported” - but what is Ubuntu version on your Heroku? |
i have solved most of the things but now stuck on new issue Fetching dependencies |
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 🍻
The text was updated successfully, but these errors were encountered: