@swizzyweb/swerve-web-service
v0.1.6
Published
Template for swizzyweb backend web services
Readme
@swizzyweb/swizzy-backend-template-web-service
This is a sample swizzy backend web service that can be used as the starting point for your swizzyweb service.
Documentation:
https://swizzyweb.github.io/swerve-web-service/
Web service
The Swizzy web service logic can be found in the src directory.
Running
Install
npm installBuild and run immediately
npm run devOnly build
npm run buildRunning server after build
npm run serverWith swerve
After build you can just run swerve in the root directory.
With swerve
After build you can just run swerve in the root directory.
Running full stack
npm install @swizzyweb/swerve-web-service @swizzyweb/swerve-frontend-web-service
swerve @swizzyweb/swerve-web-service @swizzyweb/swerve-frontend-web-serviceService config
web-service-config.json
{
"port": 3005,
"services": {
"Frontend": {
"servicePath": "../swerve-frontend-web-service/"
},
"Backend": {
"servicePath": "../swerve-web-service/"
}
}
}
swerve --config web-service-config.jsonService
nodeModulesPath - path where node_modules should be stored when installing web services
