angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.13k stars 1.24k forks source link

ElectronJS and Client Built #2731

Closed beshad closed 6 years ago

beshad commented 6 years ago
Item Version
generator-angular-fullstack x.x.x
Node x.x.x
npm x.x.x
Operating System OS X 10 / Windows 10 / Ubuntu 15.10 / etc
etc etc
Item Answer
Transpiler Babel / TypeScript
Markup HTML / Pug
CSS CSS / LESS / SCSS / Stylus
Router ngRoute / ui-router
Client Tests Jasmine / Mocha
DB MongoDB / SQL
Auth Y / N
etc etc

I have used this generator in multiple full-stack projects and it works like a charm. Now i need to convert one of our existing projects into an offline ElectronJS desktop app. tring to achieve this without too much code modifications. I have replaced all the server api calls with local reads from json files, placed in the client folder (crud is not needed) and auth is removed too. everything seems to work fine when server is running (gulp serve) but i get console errors when try to run the index.html file generated by 'gulp build' in the client folder. i get 404 for all the JS files eventhough the path is correct. is there any way to build and run the Client only without the need to node server? cheers