Access some data in MySQL database
-
Is it possible to use the NPM MySQL/MySQL packages on this Quasar Framework…? i try to install NPM just like what i did in Node.Js… i dont know what else i can do to allow it correctly… i need to read and write some data in the existing system (uses MySQL). I hope someone can help me. Thanks
-
You can use packages with Quasar as much as like you do with Node.js in general.
First, install the packages that you want to use (locally or globally, your choice):
npm install --save mypackage
Then, in the <script> section of your components, import the packages that you want to use:
<script>
import mypackage from ‘mypackage’
…
mypackage.CallFunctionFromMyPackage(…)
</script>Hope this helps
-
Quasar is for front-end. Database packages would be for a back-end. You need to build out a back-end to consume MySQL and communicate to/from front-end to back-end.
-
@pavarine thank you so much i will try this
-
@hawkeye64 thank you so much