You can use this model do your server service . Some webservice use more port for many project and this component it and only use one port .
Set your project in the
ObjectModel/project
and start server that you will see your project in<youraddress>/ObjectModel/project/<yourproject>
this only apply to static web(not send data to server)
Set your project in the
ObjectModel/project
go toServerModel/nodejs/postManage.js
, add new case"/ObjectModel/project/<youraddress>"
you can delete your origin server file
your post file must be
xxxaction.js
orxxxaction.html
start server that you will see your project in
<youraddress>/ObjectModel/project/<yourproject>
Can database now
create database
Create Database ServerModel;
sudo npm run serve
run test for
sudo npm test
go in directory
cd ServerModel/nodejs/
Install npm package.json
npm install
and use nodejs express
node server.js
ornodejs server.js
and server already start
use docker compose to build a container server
docker-compose build
run docker in background
docker-compose up -d
close and kill process in docker
docker-compose down
open browser localhost:8501/ObjectModel/project to see project