[FEATURE] Scaffold .env.example for Selected Database Provider
Description Update Celrix scaffolding to automatically generate a .env.example file based on the database selected by the user. The generated file must contain the environment variables required to run both the frontend and backend, along with the correct connection variables for the selected database provider. Supported Database Options
- Local PostgreSQL
- Supabase
- Turso
- MongoDB Atlas
- Neon PostgreSQL
- PlanetScale MySQL Environment Templates Local PostgreSQL
Frontend
FRONTEND_API_URL=http://localhost:[backend-port]
Backend
BACKEND_PORT=[backend-port]
Database
DATABASE_URL=postgresql://[username]:[password]@localhost:5432/[database]
Supabase
Frontend
FRONTEND_API_URL=http://localhost:[backend-port]
Backend
BACKEND_PORT=[backend-port]
Database
DATABASE_URL=[supabase-postgres-connection-string]
Supabase
SUPABASE_URL=[supabase-project-url] SUPABASE_ANON_KEY=[supabase-anon-key]
Turso
Frontend
FRONTEND_API_URL=http://localhost:[backend-port]
Backend
BACKEND_PORT=[backend-port]
Database
TURSO_DATABASE_URL=[turso-database-url] TURSO_AUTH_TOKEN=[turso-auth-token]
MongoDB Atlas
Frontend
FRONTEND_API_URL=http://localhost:[backend-port]
Backend
BACKEND_PORT=[backend-port]
Database
MONGODB_URI=mongodb+srv://[username]:[password]@[cluster].mongodb.net/[database]
Neon PostgreSQL
Frontend
FRONTEND_API_URL=http://localhost:[backend-port]
Backend
BACKEND_PORT=[backend-port]
Database
DATABASE_URL=postgresql://[username]:[password]@[host]/[database]?sslmode=require
PlanetScale MySQL
Frontend
FRONTEND_API_URL=http://localhost:[backend-port]
Backend
BACKEND_PORT=[backend-port]
Database
DATABASE_URL=mysql://[username]:[password]@[host]/[database]
Setup Instructions After scaffolding, the generated project should instruct the user to create their local environment file: cp .env.example .env
The user must replace all placeholders with valid values before starting the application. Acceptance Criteria
- [ ] .env.example is automatically generated during scaffolding.
- [ ] The generated template corresponds to the selected database provider.
- [ ] Frontend API configuration is included.
- [ ] Backend port configuration is included.
- [ ] All database-specific connection variables are included.
- [ ] Supabase includes SUPABASE_URL and SUPABASE_ANON_KEY.
- [ ] Turso includes TURSO_DATABASE_URL and TURSO_AUTH_TOKEN.
- [ ] MongoDB Atlas includes MONGODB_URI.
- [ ] Neon includes the PostgreSQL DATABASE_URL.
- [ ] PlanetScale includes the MySQL DATABASE_URL.
- [ ] Local PostgreSQL includes a local PostgreSQL connection string.
- [ ] No real credentials or secrets are generated.
- [ ] Setup instructions include cp .env.example .env.
- [ ] The application validates the required environment variables before startup.
hi I need to work on this issue
please assign me
@pratikadamas , run Celtrix. check if the issue is valid, if so start working.