Repository files navigation Example of embedding nodejs app in uliweb project
Can debug and deploy with same style
No cross-domain needed
Create a uliweb app for nodejs app like node_example
Configure publicPath under static directory, example: publicPath: '/static/node/'
Configure npm scripts to watch source code and build, example
Run uliweb debug server: uliweb runserver
Run npm script to watch and build
How to use this source code?
Install python dependency, in uliweb project root directory run:
pip install -r requirements.txt
In nodejs source code root ( apps/node_example/ ) install nodejs dependency:
npm install
In uliweb project root directory run the debug server:
uliweb runserver
In nodejs source code root run watch and build command:
npm run build:watch
Access http://localhost:8000 to view the dev web server
Try to modify nodejs source code( for example app.vue )
Try to refresh browser with Ctrl+Shift+R or disable the browser cache to see the result after modification
When nodejs source code changed and built, in browser need to use 'Ctrl+Shift+R' to refresh, so that browser won't use old version in cache.
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.