https://github.com/extrawest/mat-ai-coach
MAT-AI-COACH is a state-of-the-art fitness coaching application built with NextJS, designed to offer personalized and intelligent fitness guidance. Leveraging AI-powered chat assistance, secure user authentication, this app provides a seamless and interactive fitness coaching experience.
https://github.com/extrawest/mat-ai-coach
ai aichatbot clerk-auth nextjs openai openai-api prisma react typescript vercel-deployment xata-io
Last synced: about 1 month ago
JSON representation
MAT-AI-COACH is a state-of-the-art fitness coaching application built with NextJS, designed to offer personalized and intelligent fitness guidance. Leveraging AI-powered chat assistance, secure user authentication, this app provides a seamless and interactive fitness coaching experience.
- Host: GitHub
- URL: https://github.com/extrawest/mat-ai-coach
- Owner: extrawest
- Created: 2024-08-06T13:49:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-08T09:22:52.000Z (about 1 year ago)
- Last Synced: 2025-03-30T17:46:38.471Z (7 months ago)
- Topics: ai, aichatbot, clerk-auth, nextjs, openai, openai-api, prisma, react, typescript, vercel-deployment, xata-io
- Language: TypeScript
- Homepage: https://mat-ai-coach.vercel.app
- Size: 142 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MAT-AI-COACH
A NextJS-based AI fitness coaching application.
## Demo
https://github.com/user-attachments/assets/3770eeda-3d7c-469b-b024-a6f663069e67
## Preview
https://mat-ai-coach.vercel.app/
## Features
- AI-powered chat assistant with motivational responses
- User authentication (sign-in and sign-up functionality)
- Profile management
- OpenAI integration for intelligent responses
- Xata cloud service integration## Tech Stack
### Frontend & Backend
- **NextJS:** Utilized for both the frontend and backend, providing a unified development framework that supports server-side rendering and static site generation.### Authentication
- **Clerk:** - Implemented using Clerk.com service to provide secure and seamless user authentication with custom routes for sign-in and sign-up, ensuring user data protection and easy access management.### Database
- **Postgres:** Reliable relational database for storing user data.
- **Xata cloud service (Prisma ORM):** Xata provides a cloud-based database service integrated with Prisma ORM for easy data handling and migrations.### AI Integration
- **OpenAI API:** Integrates with OpenAI to provide intelligent and responsive AI-powered coaching.### Styling
- **Tailwind CSS:** Utility-first CSS framework to create modern, responsive designs quickly.## Setup and Installation
1. Clone the repository
2. Install dependencies: `npm install`
3. Set up environment variables in `.env` (see Environment Variables section)
4. Configure [Xata database connection with Prisma ORM](https://xata.io/docs/integrations/prisma)
5. Run the development server: `npm run dev`## Environment Variables
Create a `.env` file in the root directory and add the following variables:
```
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=
NEXT_PUBLIC_CLERK_SIGN_UP_URL=
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=
OPENAI_API_KEY=
DATABASE_URL=
APP_SECRET_KEY=
NEXT_PUBLIC_BASE_URL=
```## Deployment
The app is deployed on Vercel. Automatic deployments are triggered on pushes to the main branch.