Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Question Bank, Exam Questions Randomization #21

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
18 changes: 9 additions & 9 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
DATABASE_URL='postgresql://postgres:postgres@postgres:5432/postgres'

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_CLIENT_SECRET=
GITHUB_CLIENT_ID=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
GOOGLE_CLIENT_ID='<YOUR_KEY>'
GOOGLE_CLIENT_SECRET='<YOUR_KEY>'
GITHUB_CLIENT_SECRET='<YOUR_KEY>'
GITHUB_CLIENT_ID='<YOUR_KEY>'
DISCORD_CLIENT_ID='<YOUR_KEY>'
DISCORD_CLIENT_SECRET='<YOUR_KEY>'
RAZORPAY_ID=<your_razorpay_id>
RAZORPAY_SECRET=<your_razorpay_secret>
RAZORPAY_WEBHOOK_SECRET=<your_razorpay_webhook_secret>

APP_NAME='http://localhost:3000'

JWT_SECRET=''
JWT_SECRET='<YOUR_KEY>'

GMAIL_PASSWORD=
GMAIL_USER=
GMAIL_PASSWORD='<YOUR_KEY>'
GMAIL_USER='<YOUR_KEY>'
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,4 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

prisma/migrations

certificates
10 changes: 7 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ npx prisma migrate deploy
npx prisma generate

# Run database migrations
npx prisma migrate dev --name init
npm install @node-rs/argon2-linux-arm64-musl
npx prisma migrate dev --name init

# Install a cross-platform version of argon2
npm install argon2

# Run the seed script
npm run seed

# Run the main container command
exec "$@"
exec "$@"
Loading