Skip to content

CodeStudio-Inc/safedaughter

Repository files navigation

# Safe Daughter Initiative Platform ## Local setup 1) Create `.env.local` based on `.env.example`. 2) Install dependencies and start the dev server. ```bash npm install npm run dev ``` ## MongoDB seed (local) Send a POST request to seed starter data. ```bash curl -X POST http://localhost:3000/api/seed \ -H "x-seed-key: SEED_KEY" ``` ## Netlify deployment This project includes `netlify.toml` and the Netlify Next.js plugin. Set these environment variables in the Netlify UI: - `MONGODB_URI` - `AUTH_SECRET` - `SEED_KEY` - `NEXT_PUBLIC_APP_NAME` Optional (notification stub control): - `NOTIFICATION_PROVIDER` (default `stub`) Local Netlify dev (if Netlify CLI is installed): ```bash netlify dev ``` ## Performance and low-bandwidth guidance - Prefer short text summaries and external links over heavy inline media. - Use `next/image` for any future images and keep thumbnails under 200KB. - Cache read-only API responses for 60s (see `Cache-Control` headers in list endpoints). - Keep forms minimal and avoid auto-loading large resources. ## Offline-friendly strategy - Provide downloadable PDFs or text summaries for critical resources. - If the network is unavailable, show cached lists and allow retry actions. - Avoid blocking the entire UI on a single API call; show partial content when possible. # safedaughter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published