Setting Up Development Environment
Prerequisites
Required Tools
- Go: 1.22 or higher
- Node.js: 20 LTS or higher
- npm: 10+ or pnpm 8+
- Git: Latest version
Optional Tools
- Docker: For containerized deployment
- CUDA Toolkit: 12+, for GPU VRAM development
- Make: For using Makefile commands
Clone the Project
bash
git clone https://github.com/Maicarons/memesplora.git
cd memesploraInstall Dependencies
Backend
bash
cd backend
go mod tidyFrontend
bash
cd frontend
npm installDocumentation
bash
cd docs
npm installDevelopment Mode
Start Backend
bash
cd backend
MEMESPLORA_MEMORY_SIZE=1073741824 go run ./cmd/serverStart Frontend (separate terminal)
bash
cd frontend
npm run devStart Documentation (separate terminal)
bash
cd docs
npm run devVerify Installation
- Backend:
http://localhost:5212/healthshould return{"status":"ok"} - Frontend:
http://localhost:5173should show the login page - Docs:
http://localhost:5174should show the documentation site
GPU Development Setup
NVIDIA CUDA
- Install NVIDIA driver (545+ recommended)
- Install CUDA Toolkit 12+
bash
nvidia-smi # Verify GPU
nvcc --version # Verify CUDA