A Calendar app with an AI bot that helps manage your calendar and schedule through simple commands.
Before running this project, make sure you have the following installed:
- Node.js
- PostgreSQL
- npm
- Install PostgreSQL if you haven't already
- Create a new database
- Locate the
TimeWiseDB_backup.sqlfile in the root directory - Restore the database using:
psql your_database_name < TimeWiseDB_backup.sql- Create a
.env.localfile in the root directory - Add the following environment variables (Use port 5433 if 5432 doesn't work):
# Add your environment variables here
# Database configuration
DB_HOST=your_host
DB_USER=your_username
DB_PASSWORD=your_password
DB_NAME=your_database_name
DB_PORT=5432
# Discord configuration
DISCORD_TOKEN=your_discord_bot_token
DISCORD_CLIENT_ID=your_client_id
- Clone the repository
https://github.com/5sansiva/CS-3354.git- Install dependencies
npm installThe application needs to be run in two parts:
- Start the Discord bot:
npm run bot- In a separate terminal, start the development server:
npm run dev- Join our Discord server: TimeWise Server
- Navigate to the
#testingchannel - Use the bot with the following syntax:
!calendar {command}
This is a Next.js project bootstrapped with create-next-app.
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!