Modern React website for FISE - Fast Internet Secure Extensible encryption library.
- Interactive Demo - Try FISE encryption in your browser
- Complete Documentation - API reference, tutorials, and guides
- Code Examples - Real-world usage patterns
- Responsive Design - Works on all devices
- Tailwind CSS - Modern utility-first styling
npm installnpm run devThe site will be available at http://localhost:5173
The API base URL can be configured via environment variable:
# Create .env file (optional, defaults to http://localhost:3008)
VITE_API_BASE=http://localhost:3008Or set it when running:
VITE_API_BASE=http://localhost:3008 npm run devThe configuration is in src/config.ts and defaults to http://localhost:3008 if not set.
Run both the React website and Fastify backend together:
./start-with-backend.shThis will start:
- Backend API at
http://localhost:3008 - Frontend website at
http://localhost:5173
Then visit http://localhost:5173/demo for the live integration demo.
See INTEGRATION.md for detailed setup instructions.
npm run buildnpm run previewfrontend-react/
├── src/
│ ├── components/ # Reusable components
│ │ ├── Navbar.jsx # Navigation bar
│ │ └── Footer.jsx # Footer with links
│ ├── pages/ # Page components
│ │ ├── Home.jsx # Landing page
│ │ ├── DemoBackend.jsx # Live backend demo
│ │ ├── Documentation.jsx # Docs viewer
│ │ └── Examples.jsx # Code examples
│ ├── App.jsx # Main app component
│ ├── main.jsx # Entry point
│ └── index.css # Global styles
├── public/ # Static assets
├── index.html # HTML template
├── vite.config.js # Vite configuration
├── tailwind.config.js # Tailwind configuration
└── package.json # Dependencies
Landing page with:
- Hero section
- Feature highlights
- How it works
- Use cases
- Call-to-action
Live backend integration demo:
- Fetch encrypted user data
- Retrieve encrypted products
- Login with encrypted tokens
- Submit encrypted forms
- Compare plaintext vs protected endpoints
- Real API calls with Fastify backend
Complete documentation:
- Getting started guide
- Core concepts
- API reference
- Rules builder
- Presets
- Custom rules
- Best practices
- FAQ
Code examples for:
- Backend API protection
- Form data encryption
- LocalStorage security
- Session tokens
- WebSocket messages
- File upload protection
- React 18 - UI framework
- Vite 5 - Build tool
- React Router 6 - Routing
- Tailwind CSS 3 - Styling
- FISE - Encryption library
The API base URL is configured in src/config.ts and can be set via environment variable:
# Create .env file
VITE_API_BASE=http://localhost:3008Default: http://localhost:3008 (if not set)
Edit tailwind.config.js to change the color scheme:
theme: {
extend: {
colors: {
primary: '#667eea',
secondary: '#764ba2',
// ... more colors
}
}
}All page content is in the src/pages/ directory. Edit the JSX files to update content.
Recommended for FISE demos - Fast, free, and easy to deploy.
-
Connect your repository:
- Go to Cloudflare Dashboard → Pages
- Click "Create a project" → "Connect to Git"
- Select your repository
-
Configure build settings:
- Framework preset: Vite
- Build command:
npm run build - Build output directory:
dist - Root directory:
examples/frontend-react(if deploying from monorepo)
-
Set environment variables:
- Go to Settings → Environment variables
- Add
VITE_API_BASEwith your backend API URL - Example:
VITE_API_BASE=https://your-backend-api.com
-
Deploy:
- Cloudflare will automatically deploy on every push to your branch
- Your site will be available at
https://your-project.pages.dev
# Install Wrangler CLI
npm install -g wrangler
# Login to Cloudflare
wrangler login
# Build the project
npm run build
# Deploy to Cloudflare Pages
wrangler pages deploy dist --project-name=fise-demo- SPA Routing: The
public/_redirectsfile ensures React Router works correctly - Environment Variables: Set
VITE_API_BASEin Cloudflare Pages dashboard - CORS: Make sure your backend API allows requests from your Cloudflare Pages domain
- Connect your repository
- Set build command:
npm run build - Set publish directory:
dist
Excellent for React + Vite - Auto-detects Vite, zero configuration needed.
-
Connect your repository:
- Go to Vercel Dashboard
- Click "Add New..." → "Project"
- Import your Git repository
-
Configure project settings:
- Framework Preset: Vite (auto-detected)
- Root Directory:
examples/frontend-react(if deploying from monorepo) - Build Command:
npm run build(auto-detected) - Output Directory:
dist(auto-detected) - Install Command:
npm install(auto-detected)
-
Set environment variables:
- Go to Settings → Environment Variables
- Add
VITE_API_BASEwith your backend API URL - Example:
VITE_API_BASE=https://your-backend-api.com - Apply to: Production, Preview, Development
-
Deploy:
- Click "Deploy"
- Vercel will automatically deploy on every push
- Your site will be available at
https://your-project.vercel.app
# Install Vercel CLI
npm install -g vercel
# Login to Vercel
vercel login
# Deploy (first time - follow prompts)
vercel
# Deploy to production
vercel --prod- SPA Routing: The
vercel.jsonfile includes rewrites for React Router - Auto-detection: Vercel automatically detects Vite and configures build settings
- Environment Variables: Set
VITE_API_BASEin Vercel dashboard or via CLI - Preview Deployments: Every PR gets a preview URL automatically
- CORS: Make sure your backend API allows requests from your Vercel domain
npm run build
# Deploy the dist/ folder- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - see LICENSE file for details