ESRI has a stack of templates in the ArcGIS Online section. But when you download them it turns out that in order to make them run, you have to first create a webmap via their WebMap Viewer application. And even then the map that you then host only references the webmap application you create on the ESRI Portal.
Coming from a FlexViewer background where I could use the Viewer app to create an application and then all files and folders were generated locally and I could edit or tweak as needed I was hoping for something similar with the WebMap Viewer.
I am looking for a blank webmap using the ArcGIS API for Javascript complete with widgets, place to insert basemaps, operational maps, etc. Does such a map template exist?