A lightweight package for transferring data between various sources.
➜ transfer git:(main) npm -v
8.1.2
➜ transfer git:(main) node -v
v16.13.1
Clone a copy of the repo:
git clone https://github.com/dinhnhat0401/transfer
Change to the TypeScript directory:
cd transfer
Install dependencies:
npm install
Setup enviroment variables:
Create a new .env file with below variables.
# Gitlab private token, created at https://gitlab.com/-/profile/personal_access_tokens
GITLAB_PRIVATE_TOKEN=xxxx-yyyyyyyy
# Gitlab API endpoint
GITLAB_API_ENDPOINT=https://abc.def
# Gitlab project info
GITLAB_PROJECT_ID=123456
# Github personal access token, created at https://github.com/settings/tokens
GITHUB_PERSONAL_ACCESS_TOKEN=xxx_yyyyyy
# Github project info
GITHUB_API_ENDPOINT=https://api.github.com
# Github project owner
GITHUB_REPO_OWNER=whoami
# Github repo where issue will be transfered to
GITHUB_REPO=myreponame
tsc src/controllers/api.ts && node src/controllers/api.js # create js file from ts file then execute js file
TBD
TBD
TBD