WeekWise is an AI-powered weekly task scheduler that helps you organize your tasks, prioritize them, and seamlessly integrate the schedule into your Google Calendar. Users can enter their tasks and priorities in natural language, and WeekWise generates a weekly plan that can be exported to Google Calendar.
- Enter tasks and priorities in natural language
- AI-powered task scheduling using OpenAI GPT-4
- Customizable wake and sleep times
- JSON output of the weekly schedule
- Export the schedule to Google Calendar
- Responsive design with Tailwind CSS
- Node.js (v14.x or later)
- npm (v6.x or later) or yarn (v1.x or later)
- Git
-
Clone the repository:
git clone https://github.com/your-username/WeekWise.git cd WeekWise
-
Install dependencies:
npm install
or
yarn install
-
Create a
.env.local
file in the root directory and add your environment variables:OPENAI_API_KEY=your-openai-api-key GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret NEXT_PUBLIC_BASE_URL=http://localhost:3000
-
Start the development server:
npm run dev
or
yarn dev
-
Open your web browser and go to
http://localhost:3000
. -
Enter your tasks and priorities in natural language, and click "Generate Schedule".
-
View the generated schedule and click "Export to Google Calendar" to add it to your Google Calendar.
OPENAI_API_KEY
: Your OpenAI API key for accessing GPT-4.GOOGLE_CLIENT_ID
: Your Google client ID for OAuth2 authentication.GOOGLE_CLIENT_SECRET
: Your Google client secret for OAuth2 authentication.NEXT_PUBLIC_BASE_URL
: The base URL of your application, e.g.,http://localhost:3000
for local development.
Tailwind CSS is used for styling the application. You can customize the Tailwind configuration in tailwind.config.js
.
pages/
: Contains the Next.js pages, including API routes.styles/
: Contains global styles and Tailwind CSS configuration.utils/
: Contains utility functions, e.g., for creating.ics
files.
pages/api/generate-schedule.js
: Handles generating the weekly schedule using GPT-4.pages/api/export-to-google-calendar.js
: Handles exporting the schedule to Google Calendar.