Currently i am building application in which i need datatable functionality using angular, node and mysql.
I checked link #https://www.npmjs.com/package/datatables-query, but this is for mongodb. I need for mysql.
Also let me know if another best option is available.
Thanks in advance.
Related
I used Firebase before. It was super simple, but It works only with non-relational database. I want to find something similar for MySQL but open source.
I found this two:
https://directus.io/
https://strapi.io/
I can't connect both to my old database or it seems complicated. I also can't find AngularJS integration. I found JavaScript integration for Strapi, but is unmaintained (https://github.com/strapi/strapi-sdk-javascript). If you recommend Strapi or Directus, is there any easy way to connect it to old database and JavaScript sdk?
If you install Directus clean, you can then just import your existing SQL tables/content and it will let you manage it. Should be very quick and easy to setup! There's a whole community on Slack that can help you out on that too:
https://directus.chat
By using Strapi you will not be able to import a database structure and generate automatically the API from it.
After that, in few clicks you will be able to map your Strapi content types (models) on your database table structure.
Let me know if you have any questions.
I'm building an Angular Universal application using TypeORM + MySQL. Is there any way in JavaScript to programmatically create an ERD from my TypeORM specification?
I see some related things but nothing exactly what I want:
rails-erd can do what I want for Rails apps.
Mermaid can make the diagram I want from markup, but not from reading the same Angular models.
MySQL Workbench can make the ERD after TypeORM has setup the database, but this is not an all-JS solution.
ember-erd does what I want for Ember apps.
TypeScript has some kind of Swagger integration I think, so maybe there is some way to generate the ERD from that? Or is there a way to have MySQL automatically generate the ERD without installing Workbench, perhaps via a Node module?
You can implement it with cola.js on the basis of D3JS http://ialab.it.monash.edu/webcola/ It is not the ideal solution but it can be used to emulate ERD.
I'm pretty new to PrimeFaces and I'd need to setup a basic CRUD User Interface. From the showcase I can see there is a built-in Datatable parameter named editable to enable editing. I wonder if there is any built-in feature to enable also Adding and Deleting items.
If not, what would be the simplest way to achieve it ? Maybe using a Dialog component to collect the new items ?
Thanks
The simplest way to get a CRUD would be to reverse engineer it. Create your tables in a database and in Netbeans 7 or 8 (I use 8) create
Entity classes from database
JSF pages from entity classes
During the second point you can choose between Primefaces and plain JSF. If you prefer, you could also skip the first point and code the entity classes yourself instead, and tell the server to create the tables on start.
This will get a full CRUD running, complete with theming, menustructure and templating, using primefaces, facelets, beans, custom entity converters, EJB's, entities and JPA.
I like most of the generated code quite well and there is a lot to learn from it as a beginner. The result is a full page for the list and dialogs (via ui:include's) for create, view and edit.
I'd think Eclipse has something similar.
Im new to Angular.JS and just wondering if it is possible to write mysql queries in angularjs?
I would like this as I am trying to create a messaging system in which I query the database and get the information live to the webpage.
Any help is appreciated, hope the question is reasonable. Gab
That is not advisable (if possible at all) as it would defeat the purpose of Angular.
You should consume data by targeting a RESTful api/service exposed by the server. The service would handle the DB access for you and provide the data to Angular using a more portable format (e.g. JSON or XML)
Some of the basics of linking Angular and REST are described here
There are related questions on SO about exposing your particular DB flavor using REST here.
This can only be a starting point but it should give you some ideas. I will try to amend this with more info as I come across it.
I am currently building a mobile application with Kendo UI which I intend to run through phonegap and deploy to some App Stores in the near future.
I have set out the layout in HTML, CSS & JS using the Kendo framework and everything is looking good and in place.
My app will talk to an existing MySQL database which already has lots of data in it. I am wanting to pull data out of the database and display it in my application. Can anybody with any experience with Kendo UI, phonegap and app deployment help me get started as the Kendo documentation for this is not very clear.
Thanks in advance!
Your mysql database with lots of data is probably on a server somewhere.
Most servers that have mysql will probably have php installed.
So the easiest thing you can do is use some of the php mvc frameworks out there to get the data from the db, convert that into json and send that to your kendo-phonegap app.
You can read more about this approach here.
Hope this helps.
I think you need to use some wrappers. Kendo UI will not just take the data from your database.
For example setup the apache http server with php. The best way would be to get some lightweight framework which would handle the database for you. From client side with Kendo you will be querying your server.