3 ms·
Curious developer here. I want to start exploring Cordova so I can make some native apps, but I have no clue how to structure the project. I'm using Django on t
by stickperson 12y ago
Curious developer here. I want to start exploring Cordova so I can make some native apps, but I have no clue how to structure the project. I'm using Django on the backend, and right now I have a completely separate frontend. For development (it's not on prod yet), I fire up my Django server, use grunt for the frontend, and use my project's API to get data to the frontend. (I had to allow for Cross Origin stuff).
Can you talk a bit about how this came to be? Is your frontend completely separate from backend? Did you use any tools such as yeoman for frontend development?
Thanks.
- habosa 12y agoSo I may not be the best person to explain these things because I am not an experience frontend web developer and this was my first project with Cordova, but I'll try. My frontend is 100% standalone, my only backends are Google Calendar and Parse so I access those with ajax requests. No server of my own. The front end was built with AngularJS, so I tried to follow a pretty standard Angular project structure. I didn't use yeoman, grunt, or anything like that (purely out of ignorance). This was my first Angular project, first Cordova app, first Chrome app, first iOS app, first time using Parse, etc etc. I definitely don't know all of the best practices but I think the fact that it was so many "firsts" for me speaks to the quality of the tools.