Skip to content

GymSquad/integrate-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Locally

Clone the project

  git clone git@github.com:GymSquad/integrate-database.git

Go to the project directory

  cd integrate-database

Install dependencies

  pnpm install

Set environment variables in .env file in /mysql and /postgres (mysql is the old database)

  cp .env.example .env

Start the server

  cd ./postgres
  pnpm dev

Open another terminal and enter /mysql, then run the integrate script

  cd mysql
  pnpm start

Hit the API to write logs

  curl http://localhost:3000/website

When all the tasks are done, you will find /postgres/id-mapping.json, and you can run the move script to move the archive files

  cd tools
  pnpm move <path-to-your-json>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors