| .. | ||
| assets/uploads/bukti_pembayaran | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| drizzle.config.ts | ||
| express.d.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Wallet Service
Configuration
Create database postgresql with name wallet
Go to services/wallet directory
Instalation dependencies
npm install
Copy .env.example to .env
cp .env.example .env
Set your database configuration in .env
generate secret key for API_KEY with command
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Note: API_KEY Backend Service and Wallet Service must be the same
Run project
Migration database
npm run migrate:fresh
Seed fake data
npm run db:seed
Run project
npm run dev