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
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORT=5000
NODE_ENV=development
STELLAR_NETWORK=testnet # testnet | mainnet (default: testnet)
STELLAR_NETWORK=testnet
JWT_SECRET=your_jwt_secret
DATABASE_URL=postgresql://user:password@localhost:5432/learnault
# Database Configuration
DATABASE_URL="postgresql://username:password@localhost:5432/learnault_db?schema=public"
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ pnpm install
# Set up environment variables
cp .env.example .env

# Set up database
pnpm db:migrate
pnpm db:seed

# Run development environment
pnpm dev
```

For detailed database setup instructions, see [Prisma Setup Guide](./prisma/SETUP.md)

### Development Workflow

```bash
Expand Down
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"description": "Decentralized learn-to-earn platform on Stellar",
"type": "module",
"keywords": [
"stellar",
"education",
Expand All @@ -25,19 +26,23 @@
"test": "vitest",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:ci": "vitest run"
"test:ci": "vitest run",
"db:migrate": "prisma migrate dev",
"db:seed": "tsx prisma/seed.ts",
"db:studio": "prisma studio"
},
"dependencies": {
"@prisma/client": "^7.4.1",
"@prisma/adapter-pg": "^7.4.2",
"@prisma/client": "^7.4.2",
"@stellar/stellar-sdk": "^14.6.1",
"bcrypt": "^5.1.1",
"bcryptjs": "^3.0.3",
"cors": "^2.8.6",
"dotenv": "^16.6.1",
"express": "^5.2.1",
"helmet": "^8.1.0",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.1",
"pg": "^8.11.3",
"pg": "^8.20.0",
"winston": "^3.19.0"
},
"devDependencies": {
Expand All @@ -49,11 +54,12 @@
"@types/jsonwebtoken": "^9.0.5",
"@types/morgan": "^1.9.10",
"@types/node": "^22.19.13",
"@types/pg": "^8.18.0",
"@types/supertest": "^7.2.0",
"@vitest/coverage-v8": "4.0.18",
"eslint": "^10.0.2",
"nodemon": "^3.1.14",
"prisma": "^7.4.1",
"prisma": "^7.4.2",
"supertest": "^7.2.2",
"ts-node": "^10.9.2",
"tsx": "^4.7.0",
Expand All @@ -62,6 +68,9 @@
"vitest": "^4.0.18"
},
"packageManager": "pnpm@10.0.0",
"prisma": {
"seed": "tsx prisma/seed.ts"
},
"engines": {
"node": ">=20.0.0",
"pnpm": ">=10.0.0"
Expand Down
Loading