swerve-frontend-web-service
v0.1.6
Published
Swerve frontend web service
Maintainers
Readme
@swizzyweb/swizzy-frontend-template-web-service
Sample react and tailwind based swizzy frontend web service. The sample app has a react based frontend and a swizzy web service backend. A sample implementation of an api can be found in the routers/Api directory.
Documentation:
https://swizzyweb.github.io/swerve-frontend-web-service/
Web service
The Swizzy web service logic can be found in the src directory.
React
The react code is in the react 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.
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.json