AI-powered content generation platform built with Next.js, Go, and PostgreSQL.
- AI Content Generation: Leverage Anthropic's powerful AI to create engaging content
- Google Authentication: Secure user authentication via Google OAuth
- Modern Dashboard: Clean, responsive interface for content management
- RESTful API: Robust Go backend with structured endpoints
- Next.js 14
- TypeScript
- Tailwind CSS
- shadcn/ui components
- NextAuth.js
- Go
- PostgreSQL
- Docker
- Railway (Deployment)
- Node.js (v18 or higher)
- Go (v1.21 or higher)
- Docker and Docker Compose
- PostgreSQL
# Install dependencies
npm install
# Run development server
npm run dev
cd postly-backend
# Start PostgreSQL and backend services
docker-compose up -d
# Run the backend server
go run main.go
Create .env
files in both root and postly-backend
directories:
Frontend (.env):
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
NEXTAUTH_SECRET=your_secret
NEXTAUTH_URL=http://localhost:3000
Backend (.env):
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postly?sslmode=disable
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
ANTHROPIC_API_KEY=your_api_key
PORT=8080
POST /api/generate
- Generate new contentGET /api/content
- List all contentGET /api/content/:id
- Get specific contentPUT /api/content/:id
- Update contentDELETE /api/content/:id
- Delete content
POST /api/auth/google
- Google OAuth loginGET /api/auth/user
- Get current user
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.