Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I Use Python in Ionic for Backend work

Can I use Python as a backend for my ionic app? i am new to ionic as well as backend development. If not python suggest some good language for backend development. I am working on a hybrid app.

like image 753
Prathik Avatar asked Mar 07 '16 10:03

Prathik


People also ask

Can you use Python for the backend of an app?

Python is a full-stack language. It is used in backend development while its frameworks are used in frontend development.

Does Ionic need a backend?

It does not matter at all. Ionic apps communicate with their backend via APIs, so a REST or json or graphQL API. You can build those with any web framework and language out there, so use whatever you are most happy with.

Can Ionic be used for web development?

Conclusion. It's already epic to have one code base that can be built into a native mobile app and also be deployed to the web, but the flexibility of using some CSS and responsive items makes Ionic the perfect choice for both your next web application, PWA and mobile app!


2 Answers

You can certainly work with Python. There is an awesome framework called Django which will easen up your development.

However, if you are new to backend development and are already developing the ionic app I strongly recomend using NodeJS. It is Javascript running on the server machine. The reason is that you will be developing on the same languages on both sides, simplifying thelearning curve. NODEJS is a magnificent language that works a little different than others since it runs on the same process using an event loop to handle incoming requests. It is worth taking a look, you will be making serious functionality in very little time. Take a look at Sequelize to work with SQL databases in an abstracted ORM way (I dont know if you are familiar with databases but it brings clases and objects to talk to DB, so you for get about sql commands like select, join...).

In NodeJS there are a lot of modules that you can just import like libraries in Java or C and call complex functionality through simple javascript code.

Take a loop at Express framework for Node to make the server as a rest api.

Your question was a little broad so I dont know what else you would like to know, if you have any further question I can certainly help you.

like image 141
Gabriel Garcia Avatar answered Sep 30 '22 02:09

Gabriel Garcia


Yes, you can use python using django rest framework as a backend for your ionic app....

like image 26
Ashok Joshi Avatar answered Sep 30 '22 04:09

Ashok Joshi