This guide provides detailed information for developers who want to contribute to or modify the Comic Reader application.
- Node.js 18 or higher
- Docker and Docker Compose (for containerized development)
- Git
comic-reader/
├── client/ # React frontend
│ ├── src/ # Source files
│ └── public/ # Static assets
├── server/ # Express backend
└── docker-compose.yml
-
Clone the repository
git clone https://github.com/jackolix/comic-reader.git cd comic-reader
-
Install dependencies
# Client dependencies cd client && npm install # Server dependencies cd server && npm install
-
Start development servers
# Start the frontend npm run dev # Start the backend node ./server.js
COMICS_DIR=/path/to/comics # Comics directory path
PORT=3000 # Server port (optional)
SERVER_PASSWORD=yourpassword # Optional password protection
cd client
npm run build
cd server
npm run build
# Build the frontend image
docker build -t comic-reader:latest -f client/Dockerfile .
# Build the backend image
docker build -t comic-server:latest -f server/Dockerfile .