cd /home/krypton/exchange-dex
cp .env.example .env
nano .envFill in your actual values:
DB_PASSWORD=your_database_password
ADMIN_ID=your_admin_username
ADMIN_PASSWORD_HASH=your_bcrypt_hash
JWT_SECRET=your_jwt_secret_min_32_chars
BLOCKCYPHER_TOKEN=your_blockcypher_api_tokencd /home/krypton/exchange-dex
git init
git add .
git status # Make sure .env is NOT listed (should be ignored)git commit -m "Initial commit: BTCT/DOGE DEX reference implementation
- Non-custodial atomic swap platform
- HTLC-based trustless swaps
- Client-side transaction signing
- Rate limiting for AML compliance
- Educational/reference purposes only"git branch -M main
git remote add origin https://github.com/timessanta/btct-doge-dex.gitYou will need a GitHub Personal Access Token (PAT):
- Go to: https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Select scopes:
repo(all sub-options) - Click "Generate token"
- COPY THE TOKEN (you'll only see it once!)
Then push:
git push -u origin mainWhen prompted for password, paste your Personal Access Token (not your GitHub password).
Visit: https://github.com/timessanta/btct-doge-dex
You should see:
- ✅ README.md displayed
- ✅ All source files
- ❌ NO .env file (should be ignored)
- ❌ NO ecosystem.config.js (should be ignored)
cd /home/krypton/exchange-dex
git add .
git commit -m "Your commit message"
git pushBefore pushing, ensure:
- .env is NOT staged (check with
git status) - ecosystem.config.js is NOT staged
- No passwords in code
- No API tokens in code
- DISCLAIMER.md is included
- README.md includes legal warnings