servidio
JavaScript Frontend Services
Overview
Servidio is a JavaScript Frontend Service Library.
You will find CRUD Services & String Services.
CRUD Services is managed by Axios, otherwise Fetch if Axios is not available.
Summary
Package Manager
NPM : npm i servidio
Yarn : yarn add servidio
CDN
- Development : https://cdn.jsdelivr.net/npm/servidio@0.1.7/dist/serve.js
- Production : https://cdn.jsdelivr.net/npm/servidio@0.1.7/dist/serve.min.js
Download
git clone https://github.com/philippebeck/servidio.git
Content
CRUD part :
- getData(url)
- postData(url, data)
- patchData(url, data)
- putData(url, data)
- deleteData(url)
String part :
- checkString(str, type)
- rewriteString(str, type)
Usage for Vue3 + NPM
- Copy the
servidio/script/constants.js
file to your project in the folder/src/script/
like this :/src/script/constants.js
& replace values with your own values - In
main.js
of Vue3, importservidio
like this :import serve from "servidio"
- Then, add this line after creating App but before mounting :
app.config.globalProperties.$serve = serve
(example) - Then use it in yours components like in these examples :