Spaces:
Configuration error
Configuration error
|
Download README.md from carefullycraftedtree/cc_site_maker: direct link, hf CLI and curl.
- Browser
- Download file 2.31 kB
-
https://huggingface.co/spaces/carefullycraftedtree/cc_site_maker/resolve/main/README.md
- Command line
-
hf download hf://spaces/carefullycraftedtree/cc_site_maker/README.md
-
curl -L -o README.md https://huggingface.co/spaces/carefullycraftedtree/cc_site_maker/resolve/main/README.md
2.31 kB
| # CC Site Maker | |
| A web application that allows users to create websites using AI assistance. This project integrates with Hugging Face for generating website components and hosting static websites. | |
| ## Features | |
| - Interactive HTML editor with Monaco Editor | |
| - AI-powered website generation using DeepSeek model | |
| - One-click deployment to Hugging Face Spaces | |
| - Responsive design with Tailwind CSS | |
| - MCP protocol support for AI assistants | |
| ## Tech Stack | |
| - Frontend: React, TypeScript, Tailwind CSS, Monaco Editor | |
| - Backend: Express.js, Node.js | |
| - AI: Hugging Face Inference API with DeepSeek model | |
| - Deployment: Hugging Face Spaces | |
| ## Development Setup | |
| 1. Install dependencies: | |
| ```bash | |
| npm install | |
| ``` | |
| 2. Create a `.env` file with the following variables: | |
| ``` | |
| OAUTH_CLIENT_ID=your_huggingface_oauth_client_id | |
| OAUTH_CLIENT_SECRET=your_huggingface_oauth_client_secret | |
| APP_PORT=7860 | |
| REDIRECT_URI=http://localhost:7860/auth/login | |
| DEFAULT_HF_TOKEN=your_huggingface_token | |
| MCP_PORT=4000 | |
| MCP_JWT_SECRET=your_jwt_secret | |
| DEEPSITE_URL=https://huggingface.co/spaces/your-username/your-space | |
| ``` | |
| 3. Start the development environment: | |
| # Run both frontend (Vite) and backend server together | |
| npm run dev:all | |
| # Or run them separately: | |
| # Frontend only | |
| npm run dev | |
| # Backend server only | |
| npm run server | |
| ``` | |
| The development setup includes: | |
| - Frontend running on: http://localhost:5173 | |
| - Backend API running on: http://localhost:7860 | |
| - API calls from frontend to backend are proxied automatically | |
| ## Scripts | |
| - `npm run dev:all` - Run both frontend and backend concurrently | |
| - `npm start` - Start the MCP server for AI assistant integration | |
| ### User Authentication | |
| - `GET /api/login` - Get login URL for Hugging Face OAuth | |
| - `GET /auth/login` - OAuth callback | |
| - `GET /auth/logout` - Logout | |
| - `GET /api/@me` - Get current user info | |
| ### MCP Protocol (for AI assistants) | |
| - `GET /mcp` - MCP protocol handshake | |
| - `GET /mcp/tools` - List available tools | |
| - `POST /mcp/run` - Execute a tool | |
| ## Troubleshooting | |
| If you encounter connectivity issues: | |
| 1. Make sure both frontend and backend servers are running | |
| 2. Check that the ports (5173 for frontend, 7860 for backend) are available | |
| 3. If you get API errors, try restarting both servers with `npm run dev:all` | |
| 4. Check your .env configuration, especially the HF_TOKEN | |
| ``` | |