A comprehensive dashboard for managing custom ROMs (SleepOS, AOSP, Ports) for various devices.
- 📱 Device management (view, add, edit, delete)
- 📦 ROM management (add, update ROMs for devices)
- 👥 Team application management
- 📝 Changelog management
- ⚙️ Site settings configuration
- 🔐 Admin authentication
- Node.js 18+
- npm or yarn
- A Supabase account with project credentials
-
Clone the repository:
git clone YOUR_REPO_URL cd sleepos-hub -
Install dependencies:
npm install
-
Create
.env.localfile in the root directory:NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
-
Run the development server:
npm run dev
-
Visit
http://localhost:5173to view the application
Before running the application, make sure to create the necessary tables in your Supabase database using the schema provided in supabase_schema.sql:
- Go to your Supabase dashboard
- Navigate to SQL Editor
- Copy and paste the SQL commands from
supabase_schema.sqlor run:# If using the CLI or importing via SQL Editor psql -d your_supabase_db -f supabase_schema.sql
This will create all the necessary tables for devices, ROMs, applications, changelogs, settings, and user management.
- Push your code to a GitHub repository
- Go to Vercel and import your repository
- Add the environment variables in Vercel's dashboard:
NEXT_PUBLIC_SUPABASE_URL:https://qcahirjygiqcecslxzse.supabase.coNEXT_PUBLIC_SUPABASE_ANON_KEY:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFjYWhpcmp5Z2lxY2Vjc2x4enNlIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjQwMDU4ODIsImV4cCI6MjA3OTU4MTg4Mn0.pGGrbOepkGp8x1n7SqXE56_giECiXhv-AcBwTYceAi0
- Deploy your application
After deployment, all changes made in the admin panel will be persisted in the Supabase database and shared across all users.
The admin panel is accessible at /admin in the application. You can log in using:
- Email:
admin@projectsleep.com - Password:
admin123(these are configurable in the database)
If you encounter any issues or have questions, feel free to reach out.
Made with ❤️ for the custom ROM community