Cannot build the RESTful server example

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Cannot build the RESTful server example

Postby PeterR » Tue Jul 02, 2019 6:00 pm

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.
& I also believe that IDF CAN should be fixed.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Cannot build the RESTful server example

Postby WiFive » Wed Jul 03, 2019 4:34 pm

Run it from Windows cmd prompt

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: Cannot build the RESTful server example

Postby PeterR » Wed Jul 03, 2019 5:53 pm

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 ;)
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: Google [Bot] and 113 guests