π Quick Start
Welcome to LuckyStack β a modern and developer-friendly web stack built for speed, scalability, and a seamless development experience. Perfect for building your comp[l
π‘ What is LuckyStack?
LuckyStack is a full-stack boilerplate powered by modern technologies that work in perfect harmony:
π§ Core Technologies
Node.js + TypeScript β A strong backend using typed JavaScript for safer development.
React + TypeScript β Build fast, component-based frontends with confidence and IntelliSense.
Prisma β Type-safe and auto-completed database queries for PostgreSQL, MySQL, and more.
Redis β Stores user session data for fast, in-memory access across users.
Socket.IO β Powers real-time communication with two built-in systems:
apiRequest
for fetching backend datasyncRequest
for broadcasting UI updates across users
Vite β Blazing-fast dev server with near-instant Hot Module Reloading (HMR).
ESLint β Keep your codebase clean and consistent.
Tailwind CSS + PostCSS β Modern utility-first styling with full customization.
βοΈ What Makes LuckyStack Special?
β‘ Hot Reload Everything
Thanks to Vite and custom socket routing, LuckyStack supports:
π₯ HMR for React β See UI changes instantly without refreshing.
βοΈ Live Reload for Server APIs β
apiRequest
functions reload on change.π‘ Live Reload for Sync Logic β
syncRequest
logic updates without restarting the server.
π Route-Based Structure
Pages are defined by folders with
page.tsx
files undersrc/
.Functions and components can live in
_functions/
or_components/
folders inside each route.Sync and API functions are scoped per page, allowing modular and isolated logic.
π§ Getting Started
Clone the project
# Clone the repository into a new folder called "NewProject" git clone https://github.com/ItsLucky23/LuckyStack NewProject # Move into the new project directory cd NewProject
Install dependencies
--On Windows rmdir /S /Q .git --On Linux and MacOS rm -rf .git
Remove Git folder
npm install
Rename
envTemplate
to.env
and change the database URL and possible the oAuth providers values such as google keysStart developing
npm run client npm run server
Your app will be live at
http://localhost:5173
with full HMR!
β
Summary
LuckyStack is a production-ready stack that combines:
A modern UI framework (React + Tailwind)
A robust backend (Node + Prisma + Redis)
Real-time capabilities (Socket.IO)
Hot reloads for everything (React, API, Sync)
Last updated