Question: I have a nodejs + expressjs app that needs to be converted to an android. A quick solution that we are thinking of is to use phonegap. The issue I am stuck with is all my files under view folder of the web app are ejs files.

When I try to upload my app to phonegap it says no index.html found in my .zip folder. 

My question here is:
1. Should I separate the front end files from the node app? using html and pure js?
2. Is there a way I can render ejs files on to html files (something like import) so that I can convert existing web app into an android app?
3. Is there an option in phonegap to use ejs files instead of html files?

I am using <https://build.phonegap.com/> for converting the app. Someone please help as I am stuck with this for a long time.

Answer: 
As per our discussion discussion , below solution comes:-

1.Need to install `CURL` on your system by the command :- 

```
sudo apt-get install php7.0-curl

```

2.Regarding second error i got this link:- [utf8\_(en|de)code removed from php7?](https://stackoverflow.com/questions/35701730/utf8-endecode-removed-from-php7)

It states that `utf8_encode/decode` is function related to `php xml extension` which you have to install your system by below command:-

```
sudo apt-get install php7.0-xml

```

***Important Note:-*** after install of these library packages ***restart*** your ***server*** so that ***changes will reflect***. Thanks.
`utf8_encode()` is a function under the `php xml extension`, and `curl` of-course under the `curl extension`.

Solved by

```
sudo apt-get install php7.0-curl

```

and

```
sudo apt-get install php7.0-xml

```