https://github.com/web3-storage/db-migration-pipeline
https://github.com/web3-storage/db-migration-pipeline
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/web3-storage/db-migration-pipeline
- Owner: web3-storage
- License: other
- Archived: true
- Created: 2021-10-26T14:52:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-15T17:05:42.000Z (over 4 years ago)
- Last Synced: 2025-02-24T00:28:09.254Z (over 1 year ago)
- Language: JavaScript
- Size: 243 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# db-migration-pipeline
Migration pipeline to move data from Fauna DB into Postgres.
## Setup
```sh
npm install
```
To run locally you will need the following in your `.env.local` file:
```ini
# Running environment (dev, staging, production)
ENV=dev
# Fauna keys
DEV_FAUNA_KEY=
STAGING_FAUNA_KEY=
PRODUCTION_FAUNA_KEY=
# Postgres keys
DEV_PG_CONNECTION=
STAGING_PG_CONNECTION=
PRODUCTION_PG_CONNECTION=
```
## Usage
### Full Migration
```sh
node bin.js full
```
### Partial Migration
```sh
node bin.js partial
```
### Full Fauna Dump
```sh
node bin.js fauna-dump
```