Reference

Code templates

Reusable starting points I reach for again and again — server setups, configs and components. Copy or download any of them.

Express.js Server

server.js
javascript

Basic Express.js server setup with middleware, routes, and error handling

Package.json Template

package.json
json

Standard package.json configuration for Node.js projects

React Component Template

Component.tsx
typescript

TypeScript React component with props interface and modern hooks

Environment Variables

.env
bash

Template for environment configuration files

Dockerfile Template

Dockerfile
dockerfile

Multi-stage Dockerfile for Node.js applications

.gitignore Template

.gitignore
text

Comprehensive .gitignore for Node.js and web projects

FastAPI Main Application

main.py
python

FastAPI application setup with middleware, routers, and error handling