This repository is the frontend for an application designed to help native Chinese speakers study the Washington Driver Guide for their knowledge test required to obtain a driver's license. The application generates new practice questions based on the Washington Driver Guide using GPT-4 offered by OpenAI.
Deployments and Links:
Before you begin, ensure you have the following installed on your system:
Clone the repository:
git clone https://github.com/adamowada/wa-driver-guide-practice-frontend.git
cd wa-driver-guide-practice-frontend
Install the dependencies:
npm install
Start the development server with the following command:
npm run dev
You can also use yarn
, pnpm
, or bun
if you prefer:
# with yarn
yarn dev
# with pnpm
pnpm dev
# with bun
bun dev
Open http://localhost:3000 with your browser to see the application.
├── README.md
├── jsconfig.json
├── next.config.mjs
├── package-lock.json
├── package.json
├── postcss.config.mjs
├── src
│ ├── app
│ │ ├── api
│ │ │ ├── create-questions
│ │ │ │ └── route.js
│ │ │ └── get-questions
│ │ │ └── route.js
│ │ ├── favicon.ico
│ │ ├── globals.css
│ │ ├── layout.js
│ │ ├── page.js
│ │ └── review
│ │ └── page.js
│ └── components
│ ├── Header.jsx
│ └── Question.jsx
├── tailwind.config.js
└── vercel.json
src/app/api
: Contains API routes for creating and getting questions.src/app/globals.css
: Global CSS styles.src/app/layout.js
: Root layout component.src/app/page.js
: Main page component where questions are generated.src/app/review/page.js
: Review page component where previous questions are retrieved.src/components
: Contains reusable React components like Header and Question.Once the development server is running, you can start using the application by navigating to the main page:
Generate New Questions:
Review Previous Questions:
To learn more about Next.js and other technologies used in this project, check out the following resources:
Contributions are welcome! Please open an issue or create a pull request if you want to contribute.