8000 GitHub - LSFDC/losaweb: Modern full-stack application using Turborepo, Next.js, Hono, and MSSQL related to Lost Saga Game. · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.
LSFDCPublic archive

About

Modern full-stack application using Turborepo, Next.js, Hono, and MSSQL related to Lost Saga Game.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

Losaweb

Modern full-stack application using Turborepo related to Lost Saga Game.
This project maintained by Bangbokir

Note

This project uses a monorepo structure, with all applications and packages in the same repository.

Please keep all sensitive information in .env files (url, secet-key, api-key).

Tech Stack

  • Frontend: Next.js, Vite, React
  • UI Components: shadcn/ui
  • Styling: TailwindCSS
  • Backend: Hono
  • Database: MSSQL with Prisma ORM
  • Monorepo Tool: Turborepo
  • Language: TypeScript

Project Structure

├── 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

Prerequisites

  • Node.js >= 18
  • MSSQL Server
  • npm (recommended)

Setup

  1. Clone and install dependencies:
git clone https://github.com/LSFDC/losaweb.git
cd losaweb
npm install
  1. 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
  1. 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

Development

Start all applications:

npm run dev

Build all applications:

npm run build

Project Commands

  • npm run dev - Start development servers
  • npm run build - Build all applications
  • npm run lint - Lint all applications
  • npm run format - Format all documents with prettier

Project Documentation

  • 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

About

Modern full-stack application using Turborepo, Next.js, Hono, and MSSQL related to Lost Saga Game.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0