https://github.com/dedaldinodev4/ai-learning-hub-server
Powerful backend built with Node, Prisma, and SQLite.
https://github.com/dedaldinodev4/ai-learning-hub-server
bcrypt fastify jsonwebtoken nodejs prisma prisma-orm ts-none tsx types
Last synced: 2 months ago
JSON representation
Powerful backend built with Node, Prisma, and SQLite.
- Host: GitHub
- URL: https://github.com/dedaldinodev4/ai-learning-hub-server
- Owner: dedaldinodev4
- Created: 2025-11-05T15:43:19.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-05T20:28:29.000Z (8 months ago)
- Last Synced: 2025-11-05T22:17:50.808Z (8 months ago)
- Topics: bcrypt, fastify, jsonwebtoken, nodejs, prisma, prisma-orm, ts-none, tsx, types
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Learning Hub - Backend
Powerful backend built with **Node**, **Drizzle**, and **MySQL**, providing REST APIs for authentication (manual and Google OAuth), AI-powered content generation, and topic management.
---
## 🚀 Tech Stack
- **Node** — Node.js is an open-source and cross-platform JavaScript runtime environment.
- **Fastify** - Fast and low overhead web framework, for Node.js
- **Drizzle** — Database ORM
- **MySQL** — Relational database
- **JWT Authentication** — Manual login with token
- **Google OAuth** — Social login via Google
- **OpenAI API** — AI content generation
- **Deployed on Railway**
---
## Environment Variables
Create a `.env` file in the root of the backend folder:
```bash
DATABASE_URL="your_database_url"
OPENAI_API_KEY=your_openai_key
JWT_SECRET=super_secret_key
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_CALLBACK_URL=https://yourbackend.up.railway.app/auth/google/callback
PORT=3333
```
## Project Structure