Clean React + TypeScript frontend template.
  • TypeScript 89.2%
  • CSS 6.7%
  • JavaScript 1.8%
  • HTML 1.3%
  • Dockerfile 1%
Find a file
PoweredDeveloper b66b64027c Initial commit
2026-09-25 01:40:35 +03:00
public Initial commit 2026-09-25 01:40:35 +03:00
src Initial commit 2026-09-25 01:40:35 +03:00
.dockerignore Initial commit 2026-09-25 01:40:35 +03:00
.gitignore Initial commit 2026-09-25 01:40:35 +03:00
.prettierignore Initial commit 2026-09-25 01:40:35 +03:00
.prettierrc Initial commit 2026-09-25 01:40:35 +03:00
docker-compose.yml Initial commit 2026-09-25 01:40:35 +03:00
Dockerfile Initial commit 2026-09-25 01:40:35 +03:00
Dockerfile.dev Initial commit 2026-09-25 01:40:35 +03:00
eslint.config.js Initial commit 2026-09-25 01:40:35 +03:00
index.html Initial commit 2026-09-25 01:40:35 +03:00
nginx.conf Initial commit 2026-09-25 01:40:35 +03:00
package.json Initial commit 2026-09-25 01:40:35 +03:00
pnpm-lock.yaml Initial commit 2026-09-25 01:40:35 +03:00
README.md Initial commit 2026-09-25 01:40:35 +03:00
tsconfig.app.json Initial commit 2026-09-25 01:40:35 +03:00
tsconfig.json Initial commit 2026-09-25 01:40:35 +03:00
tsconfig.node.json Initial commit 2026-09-25 01:40:35 +03:00
vite.config.ts Initial commit 2026-09-25 01:40:35 +03:00

⚛️ React + TypeScript Front-End Template

Build Status License

A clean, modular template for modern front-end development using React, Vite, TypeScript, Tailwind, and TanStack tools. Designed for scalability, feature-based organization, and strong API typing via OpenAPI.

🚀 Tech Stack

📁 Project Structure

/src
├── app/                               # App-wide config, providers, router
│   ├── router/
│   │   ├── routes/                    # Route files (file-based routing)
│   │   │   ├── index.tsx              # /
│   │   │   └── route/
│   │   │       └── index.tsx          # e.g /route
│   │   └── __root.tsx                 # Router context types
│   ├── providers/                     # Global providers
│   ├── main.tsx                       # Entry point
│   └── routeTree.gen.ts               # Generated routeTree
│
├── pages/                             # Module-based domain modules
│   └── auth/
│       ├── components/
│       ├── hooks/
│       ├── pages/
│       ├── api/                       # Module-specific API wrappers
│       └── index.ts
│
├── api/                               # Auto-generated OpenAPI client
│   ├── schemas.ts                     # Generated Zod/TS schemas (if using zod)
│   ├── client.ts                      # API client instance (fetch/axios)
│   ├── endpoints.ts                   # Wrapped endpoint functions
│   └── types.d.ts                     # Generated types
│
├── components/                        # Reusable UI components (global)
│   ├── ui/                            # Design system atoms/molecules
│   └── form/                          # Form components
│
├── hooks/                             # Global cross-feature hooks
├── lib/                               # Core libraries/utilities (non-React)
│   ├── http.ts                        # fetch wrapper, interceptors
│   ├── env.ts                         # environment variables handling
│   ├── storage.ts                     # localStorage/session helpers
│   └── logger.ts
│
├── styles/                            # Global styles, tokens
│   └── index.css
│
└── assets/                            # Static assets

⚒️ Development:

🐋 Using Docker

  1. Download Docker
  2. Run
docker compose up
  1. Open application at http://localhost:8080

🏁 Without Docker

  1. Install Node.js and pnpm
  2. Clone repository
git clone https://github.com/PoweredDeveloper/frontend-template.git
cd frontend-template
  1. Install dependencies
pnpm install
# or
yarn
  1. Start dev server
pnpm run dev --port 8080
# or
yarn dev --port 8080
  1. Open app http://localhost:8080

Important

Route files are auto-generated. A system restart may be required after initial setup to ensure the router correctly refreshes its file mapping.

TO-DO

  • Custom components
    • General (button, inputs, etc.)
    • Universal (pop-ups, labels, badges)
  • API