FiveDays is a NextJS app that uses Artificial Intelligence to assist lecturers in creating and grading assessments. This project is built with Next.js, TypeScript, Mantine, and the OpenAI API.
- AI-powered creation of assessments based on a provided course outline.
- Automated grading of students' work using Artificial Intelligence.
- Integration with Google Classroom to fetch student's work and publish their grades.
- Node.js
- npm
- An OpenAI API key
- Google Classroom API credentials
- Clone this repository:
git clone https://github.com/ntholi/fivedays.git
- Install dependencies:
cd fivedays
npm install
- Add your OpenAI API key and Google Classroom API credentials to a .env file:
echo "OPENAI_API_KEY=your-api-key" >> .env
echo "GOOGLE_CLASSROOM_CREDENTIALS=your-credentials" >> .env
- Configure NextAuth.js. The GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET and JWT_SECRET environment variables are used to configure Google OAuth. You need to go to The NextAuth.js Google OAuth documentation to get your credentials. For more details see the NextAuth.js documentation for more information.
echo "GOOGLE_CLIENT_ID=your-client-id" >> .env
echo "GOOGLE_CLIENT_SECRET=your-client-secret" >> .env
echo "JWT_SECRET=your-jwt-secret" >> .env
- To generate a JWT_SECRET use the NextAuth.js secret generator. For more details see the NextAuth.js documentation for more information. You can also use a different secret for each provider by using the secret option in the provider configuration. Or run each of the following commands to generate a secret:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
openssl rand -hex 32
- Run the development server:
npm run dev
(this will be updated as the project progresses)
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for their amazing API.
- TypeScript for making JavaScript better.
- Next.js for their amazing framework.
- NextAuth.js for their amazing authentication library.
- Mantine for their awesome React components.
- Google Classroom for making learning easier.
- Google Developers for their amazing APIs.
- Unsplash for their amazing images.