Scrape exam questions from ExamTopics discussions page.
- Clone this repo
git clone https://github.com/zqtay/examtopics-scraper.git
cd examtopics-scraper
- Install dependencies
npm ci
- Add
.env
file.
NEXTAUTH_ADMIN_USER=admin
NEXTAUTH_ADMIN_PASSWORD=password
NEXTAUTH_SECRET=secret
NEXTAUTH_URL=http://localhost:3000
POSTGRES_PRISMA_URL=postgres://...
- Build database client
npx prisma generate
- (Optional) For new database, initialize and seed tables
npx prisma db push
npx prisma db seed
- Run development server
npm run dev
- Open
http://localhost:3000
in browser