Page 1 of 1

Cannot build the RESTful server example

Posted: Tue Jul 02, 2019 6:00 pm
by PeterR
Trying to build

Code: Select all

\esp-idf\examples\protocols\http_server\restful_server
on a PC with MINGW32
How do I build the webpages on a PC?

Code: Select all

npm run build
doesnt run within MINGW32

As is I can create the webserver but the files have not been downloaded into SPI flash.
I dont have JTAG and really wanted to see how the example achieved a webpage with directories.

Re: Cannot build the RESTful server example

Posted: Wed Jul 03, 2019 4:34 pm
by WiFive
Run it from Windows cmd prompt

Re: Cannot build the RESTful server example

Posted: Wed Jul 03, 2019 5:53 pm
by PeterR
Cool. Looks like I also have install a load of stuff as well.

Just a comment (to ESP) but this example requires that I learn a bit about vue when really all I want is directory handling in SPIFFS and/or to understand how to build and upload a FATFS image to flash. Its difficult to understand your restful example without vue experience. I understand restful & have created bare Lwip restful before but I'm finding the links time consuming to grasp. I just want to know how to get directories and maybe see worked examples about the details of how to talk to your webserver. Basic test cases really, not art.
Suppose it will be better in the end for me to learn vue. Its really those PMs and their darn schedules which are at fault ;)