baraqex
Version:
A powerful full-stack framework for modern web development
63 lines (45 loc) ⢠1.61 kB
Markdown
# Frontend Hamroun SSR Template
š Advanced SSR template with hooks, modern design, and interactive components.
## Features
- ā
Server-Side Rendering (SSR)
- ā
Client-Side Hydration
- ā
React-like Hooks (useState, useEffect, useRef, useMemo)
- ā
Modern TypeScript Support
- ā
Interactive Components (Counter, Timer, Todo List)
- ā
Theme Switching (Light/Dark)
- ā
Responsive Design
- ā
Performance Optimized
## Getting Started
```bash
# Install dependencies
npm install
# Build the application
npm run build
# Start the development server
npm run dev
```
Visit http://localhost:3000 to see your app.
## Project Structure
```
src/
āāā App.tsx # Main application component
āāā server.ts # Express server with SSR
āāā client.tsx # Client-side hydration
dist/ # Built files
esbuild.config.js # Build configuration
```
## Available Scripts
- `npm run dev` - Build and start development server
- `npm run build` - Build for production
- `npm run start` - Start the server
- `npm run clean` - Clean and reinstall dependencies
## Custom Hooks
The template includes several custom hooks:
- `useTimer` - Timer/stopwatch functionality
- `useCounter` - Counter with step controls
- `useTodos` - Todo list management
- `useTheme` - Theme switching
## Learn More
- [Frontend Hamroun Documentation](https://github.com/hamroun96/frontend-hamroun)
- [TypeScript Documentation](https://www.typescriptlang.org/)
- [Express.js Documentation](https://expressjs.com/)