nekoding / barista-cafeins

Barista cafeins migration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Barista-Cafeins data migrator

Migrate data from silfi to cafeins.

How to run

First you need download / clone this repo using

git clone https://github.com/firmansyahrr/barista-app.git
cd barista-app
cp .env.example .env

then configure .env value

Command Unix / Linux

bun app.ts barista:sync [table_name]

# print help
bun app.ts barista:sync --help

Supported table name parameter

  • project
  • sitepoint
  • asset
  • route
  • cable
  • segment

Or if you like using container style-app you can run this app using command bellow

Docker

docker build -t barista-cafeins .
docker run -d -v ./logs:/usr/src/app/logs --name barista barista-cafeins

Docker compose

docker compose up -d

Podman

podman build -t barista-cafeins
podman run -d -v ./logs:/usr/src/app/logs --name barista barista-cafeins

PM2

if you want using pm2 to run this app you can using this command

pm2 start pm2.config.cjs

About

Barista cafeins migration


Languages

Language:JavaScript 92.9%Language:TypeScript 7.0%Language:Dockerfile 0.2%Language:Shell 0.0%