Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
```