metadata
title: Crossword Puzzle Generator
emoji: π§©
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
Crossword Puzzle Generator
A full-stack web application for generating and solving crossword puzzles with various topics.
Features
- Topic-based crossword generation
- Interactive puzzle grid with proper visual formatting
- Clues display (Across and Down)
- Solution reveal functionality
- Responsive design
Prerequisites
- Node.js (v14 or higher)
- npm
Installation & Setup
Clone the repository
git clone <your-repo-url> cd cross-words
Install backend dependencies
cd crossword-app/backend npm install
Install frontend dependencies
cd ../frontend npm install
Running the Application
Development Mode
Start the backend server
cd crossword-app/backend npm run dev
The backend will run on
http://localhost:3001
Start the frontend development server (in a new terminal)
cd crossword-app/frontend npm run dev
The frontend will run on
http://localhost:5173
Open your browser and navigate to
http://localhost:5173
Docker Deployment
Build and run with Docker:
# From project root
docker build -t crossword-app .
docker run -p 7860:7860 -e NODE_ENV=production crossword-app
Open http://localhost:7860
to access the application.
For Hugging Face Spaces: This repository is ready for Docker-based deployment.
How to Use
- Select one or more topics from the available options
- Click "Generate Puzzle" to create a new crossword
- Fill in the grid using the provided clues
- Click "Reveal Solution" to see the answers
- Click "Reset" to clear the grid and start over
Project Structure
cross-words/
βββ crossword-app/
β βββ backend/ # Node.js/Express API
β β βββ src/
β β βββ package.json
β β βββ ...
β βββ frontend/ # React application
β βββ src/
β βββ package.json
β βββ ...
βββ crossword.py # Original Python implementation
βββ README.md
Technology Stack
- Frontend: React, Vite, CSS
- Backend: Node.js, Express
- Algorithm: Backtracking-based crossword generation
- Deployment: Docker (ready for Hugging Face Spaces)
Documentation
For detailed technical documentation, deployment guides, and API specifications, see the crossword-app README.