A Next.js application with local SQLite database and authentication - works completely offline.
Features · Clone and run locally
- Works across the entire Next.js stack
- App Router
- Server Components
- Client Components
- Local SQLite database (via better-sqlite3)
- JWT authentication (via jsonwebtoken)
- Password hashing with bcrypt
- Styling with Tailwind CSS
- Components with shadcn/ui
- No external services required - works completely offline
-
Clone the repository:
git clone <repository-url> cd arch-system
-
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
The
.envfile only needs a JWT secret (optional - a default is provided):JWT_SECRET=your-secret-key-change-in-production
-
Initialize the database and create admin user:
node scripts/create-admin-user.js
This will:
- Create the
datadirectory - Initialize the SQLite database at
data/arch-system.db - Create an admin user with credentials:
- Username:
Admin@123# - Password:
Yugioh@123# - Email:
admin@arch-system.local
- Username:
- Create the
-
Run the development server:
npm run dev
The application should now be running on localhost:3000.
./deploy.shdeploy.batThese scripts will automatically install dependencies, set up the environment, initialize the database, build the project, and open your browser to the login page.
- SQLite (via better-sqlite3) for local data storage
- JWT (via jsonwebtoken) for authentication
- bcrypt for password hashing
The database file is stored at: data/arch-system.db
For detailed setup instructions, see LOCAL_DEPLOYMENT.md.