Interactive visualizations of key theorems and proofs in real analysis, built with Next.js and optimized for Vercel deployment.
- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser to
http://localhost:3000
├── app/
│ ├── page.jsx # Homepage with directory of visualizations
│ ├── layout.jsx # Root layout
│ └── heine-borel/
│ └── page.jsx # Route for Heine-Borel visualization
├── components/
│ └── HeineBorel.jsx # Heine-Borel visualization component
├── next.config.js # Next.js configuration
└── package.json # Dependencies and scripts
- Create a new component in
components/(e.g.,components/MyVisualization.jsx) - Create a new route in
app/(e.g.,app/my-visualization/page.jsx) - Add an entry to the
visualizationsarray inapp/page.jsx
This project is configured for easy deployment to Vercel. Choose one of the following methods:
-
Push your code to GitHub:
git init git add . git commit -m "Initial commit" git remote add origin https://github.com/yourusername/your-repo-name.git git push -u origin main
-
Deploy via Vercel Dashboard:
- Go to vercel.com and sign in (or create an account)
- Click "Add New Project"
- Import your GitHub repository
- Vercel will automatically detect Next.js and configure the build settings
- Click "Deploy"
-
Automatic deployments:
- Every push to
mainwill trigger a new deployment - Pull requests will create preview deployments
- Every push to
-
Install Vercel CLI:
npm i -g vercel
-
Deploy:
vercel
- Follow the prompts to link your project
- For production deployment, run
vercel --prod
-
Environment variables (if needed):
vercel env add VARIABLE_NAME
The project includes a vercel.json file with optimal settings. Vercel will automatically:
- Detect Next.js framework
- Run
npm installandnpm run build - Serve the app with optimal caching and performance
After deployment:
- Go to your project settings in Vercel
- Navigate to "Domains"
- Add your custom domain
- Follow DNS configuration instructions
npm run build
npm start