Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Server Configuration
PORT=3000
NODE_ENV=development
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=public"

# JWT Secret (generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
JWT_SECRET=your-jwt-secret-here
Expand All @@ -19,6 +20,11 @@ SMTP_USER=
SMTP_PASS=
SMTP_SECURE=false

# Stellar Configuration
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
STELLAR_CONTRACT_ID=
STELLAR_INDEXER_START_LEDGER=

# Stellar & Deposit Accounts
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
DEPOSIT_ACCOUNT_ENCRYPTION_KEY=
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"bracketSpacing": true,
"arrowParens": "avoid",
"endOfLine": "lf"
}
}
20 changes: 12 additions & 8 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
const { FlatCompat } = require('@eslint/eslintrc');
const js = require('@eslint/js');
const tseslint = require('typescript-eslint');
Expand All @@ -18,7 +19,7 @@ module.exports = [
sourceType: 'module',
parser: tseslint.parser,
parserOptions: {
project: './tsconfig.json',
project: './tsconfig.eslint.json',
},
},
files: ['**/*.ts', '**/*.js'],
Expand All @@ -34,12 +35,15 @@ module.exports = [
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['error', {
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
}],
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-duplicate-imports': 'error',
'no-unused-expressions': 'error',
Expand All @@ -52,5 +56,5 @@ module.exports = [
'@typescript-eslint/no-explicit-any': 'off',
'no-console': 'off',
},
}
];
},
];
34 changes: 34 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "tsc",
"start": "node src/server.js",
"dev": "tsx watch src/server.ts",
"indexer": "tsx watch src/indexer/run.ts",
"migration:generate": "typeorm-ts-node-commonjs migration:generate -d src/config/database.ts",
"migration:run": "typeorm-ts-node-commonjs migration:run -d src/config/database.ts",
"migration:revert": "typeorm-ts-node-commonjs migration:revert -d src/config/database.ts",
Expand All @@ -19,9 +20,9 @@
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:studio": "prisma studio",
"test": "NODE_ENV=test DATABASE_URL='postgresql://postgres:postgres@localhost:5432/postgres?schema=public' NODE_OPTIONS='--experimental-vm-modules' jest",
"test:watch": "NODE_ENV=test DATABASE_URL='postgresql://postgres:postgres@localhost:5432/postgres?schema=public' NODE_OPTIONS='--experimental-vm-modules' jest --watch",
"test:coverage": "NODE_ENV=test DATABASE_URL='postgresql://postgres:postgres@localhost:5432/postgres?schema=public' NODE_OPTIONS='--experimental-vm-modules' jest --coverage"
"test": "cross-env NODE_ENV=test DATABASE_URL='postgresql://postgres:postgres@localhost:5432/postgres?schema=public' NODE_OPTIONS='--experimental-vm-modules' jest --config jest.config.ts",
"test:watch": "cross-env NODE_ENV=test DATABASE_URL='postgresql://postgres:postgres@localhost:5432/postgres?schema=public' NODE_OPTIONS='--experimental-vm-modules' jest --config jest.config.ts --watch",
"test:coverage": "cross-env NODE_ENV=test DATABASE_URL='postgresql://postgres:postgres@localhost:5432/postgres?schema=public' NODE_OPTIONS='--experimental-vm-modules' jest --config jest.config.ts --coverage"
},
"keywords": [],
"author": "",
Expand Down Expand Up @@ -55,8 +56,10 @@
"@types/node": "^22.19.11",
"@types/nodemailer": "^8.0.1",
"@types/supertest": "^6.0.3",
"@types/urijs": "^1.19.26",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"cross-env": "^10.1.0",
"eslint": "^9.24.0",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-prettier": "^5.2.6",
Expand Down
Loading
Loading