Skip to content

Latest commit

 

History

History
90 lines (55 loc) · 3.46 KB

README.md

File metadata and controls

90 lines (55 loc) · 3.46 KB

Quick Start: Node.js and MariaDB

This repository will walk you through the process of quickly getting started with Node.js and MariaDB using the MariaDB Node.js connector.

Requirements

Samples

JavaScript

The javascript folder provides simple examples using MariaDB Connector/Node.js with JavaScript.

TypeScript

⚠️ Coming soon!

Get Started with the Sample Scripts

First, clone this repo.

$ git clone https://github.com/mariadb-developers/nodejs-quickstart.git

Next, from within the nodejs-quickstart directory (that you just pulled down), install the MariaDB Node.js driver (connector) using npm.

$ npm install mariadb

Finally, to execute the sample JavaScript files using the node CLI command.

Note: Be sure to update the connection configuration to point to your database in the JavaScript sample files. For example, here.

$ node javascript/connect/connection.js

$ node javascript/query/create.js

$ node javascript/query/insert.js

$ node javascript/query/select.js

...

Helpful Resources

Support and Contribution

Please feel free to submit PR's, issues or requests to this project directly.

If you have any other questions, comments, or looking for more information on MariaDB please check out:

Or reach out to us directly via:

License

License