Modern full-stack application using Turborepo related to Lost Saga Game.
This project maintained by Bangbokir
Note
- Frontend: Next.js, Vite, React
- UI Components: shadcn/ui
- Styling: TailwindCSS
- Backend: Hono
- Database: MSSQL with Prisma ORM
- Monorepo Tool: Turborepo
- Language: TypeScript
├── database/
│ └── LosaAdmin.sql # Required database SQL
│ └── LosaGame.sql # Required database SQL
│ └── LosaGame_Log.sql # Required database SQL
│ └── LosaLogData.sql # Required database SQL
├── apps/
│ └── api/ # REST API with HonoJS
│ └── losapanel/ # User Panel & Admin Panel
│ └── losadb/ # Database & Web Tools
│ ├── main-vite-react/ # Main Site with Vite + React + Typescript
├── packages/
│ └── eslint-config/ # Shared eslint configs
│ └── typescript-config/ # Shared TypeScript configs
│ └── ui/ # Shared UI components
│ └── database/ # Shared database utilities & instances
│ └── tripay/ # Shared Tripay SDK
- Node.js >= 18
- MSSQL Server
- npm (recommended)
- Clone and install dependencies:
git clone https://github.com/LSFDC/losaweb.git
cd losaweb
npm install- Configure environment variables:
###losapanel
cd apps/losapanel
cp env-example .env
fill all the required fields in .env
###database packages
cd packages/database
cp env-example .env
edit .env to match your database credentials- Initialize database:
#first step (required)
import all require .sql to your MSSQL database , can use navicat(recommended)
#losagame
cd packages/database
npm run losagame:push
npm run losagame:generate
#losalogdata
cd packages/database
npm run losalogdata:push
npm run losalogdata:generate
Start all applications:
npm run devBuild all applications:
npm run buildnpm run dev- Start development serversnpm run build- Build all applicationsnpm run lint- Lint all applicationsnpm run format- Format all documents with prettier
- API is runs at
http://localhost:5000 - Main site with Vite runs at
http://localhost:5173 - losapanel runs at
http://localhost:3000 - losadb runs at
http://localhost:3001