Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dolthub/dolt-knexjs-example
A getting started guide with Dolt and Knex.js
https://github.com/dolthub/dolt-knexjs-example
Last synced: 3 days ago
JSON representation
A getting started guide with Dolt and Knex.js
- Host: GitHub
- URL: https://github.com/dolthub/dolt-knexjs-example
- Owner: dolthub
- License: apache-2.0
- Created: 2023-09-19T20:15:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-03T16:55:47.000Z (7 months ago)
- Last Synced: 2024-11-08T08:32:22.582Z (about 2 months ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Getting started with [Dolt](https://doltdb.com) and [Knex.js](https://knexjs.org/)
The code is described in detail in [this blog](https://www.dolthub.com/blog/2023-09-27-dolt-and-knexjs/).
## Installation
```shell
% npm install
```## Running the code
```shell
% node index.js
```## Add connection env
Add a `.env` file with the following fields:
```shell
DB_HOST="host"
DB_PORT=3306
DB_USER="username"
DB_PASSWORD="password"
DB_NAME="database"
```