A full-stack React + TypeScript + Node.js application for managing and sharing code modules.
├── client/ # React + TypeScript frontend
├── server/ # Node.js + TypeScript backend
├── shared/ # Shared types and utilities
└── package.json # Root workspace configuration
-
Install dependencies:
npm install
-
Run development servers:
npm run dev
This starts both frontend (http://localhost:5173) and backend (http://localhost:5000) concurrently.
- ✅ React + TypeScript frontend with Vite
- ✅ Node.js + Express + TypeScript backend
- ✅ Module saving and sharing capabilities
- ✅ RESTful API endpoints
- ✅ CORS enabled for cross-origin requests
- ✅ Development setup with hot reload
Choose one based on your needs:
- PostgreSQL (Recommended for production)
- MongoDB (Good for flexible document storage)
- SQLite (Great for development)
- Firebase/Firestore (Best for real-time collaboration)
GET /api/health- Server health checkGET /api/modules- Get all modulesPOST /api/modules- Save a new module
npm run dev- Start both frontend and backend in development modenpm run build- Build both frontend and backend for productionnpm run start- Start production server
- Choose and integrate a database
- Add authentication
- Implement module sharing features
- Add module versioning
- Create module export/import functionality# TorchBlock