Introduction
Egglaying is layer-farm software: flocks, egg production and sales, feed and medicine, vaccinations, and client or supplier records (where the userβs role allows). Menus and home screens differ for admin, manager, and worker roles.
Egglaying
Poultry Farm Management System Β· Docs
Introduction & deployment
Deploy the app on your own stack, then roll it out to your team. The first half of this page covers setup; the second half explains how farm staff use each area of the product.
Egglaying is layer-farm software: flocks, egg production and sales, feed and medicine, vaccinations, and client or supplier records (where the userβs role allows). Menus and home screens differ for admin, manager, and worker roles.
Browser (everyone)
Self-hosting
egglaying).
npm install
.env.local (see
Environment).
npm run seed:admin
Details under Database seeds.
npm run dev
Open http://localhost:3000 β sign in at
/auth/signin.
npm run seed:sample
Seeds read .env.local via
scripts/load-env.ts. Do not commit secrets.
MONGODB_URI=mongodb+srv://USER:PASSWORD@cluster.example.mongodb.net/?appName=Cluster0 NEXTAUTH_SECRET=generate-a-long-random-string-for-production NEXTAUTH_URL=http://localhost:3000
https://yourdomain.comRun from project root with a valid .env.local.
Creates or updates the default admin (admin role).
admin@egg.com123456 β change in production.npm run seed:admin
Optional demo data: users, flocks, eggs, feed, clients, etc.
npm run seed:sample
Production: rotate default passwords after first login. The live demo uses the same default password as seeds β see Live demo.
One-time: map legacy superadmin to admin.
npm run migrate:roles
npm run build npm run start
Set NEXTAUTH_URL to your HTTPS origin. On Vercel (and similar), copy
all variables from .env.local into project settings.
npm install, Node 18+.NEXTAUTH_SECRET and NEXTAUTH_URL with the live URL.Features & usage
For people using the app
Sign in, move through the sidebar, and record work for your flocks.
Sign in at /auth/signin. Your home dashboard depends on your role.
Use the sidebar for all modules; on small screens, open the menu from the header.
On a fresh self-hosted install you can use the seeded admin or /auth/register when registration is enabled.
Profile (/dashboard/profile) β name, contact, password for everyone.
Preferences (/dashboard/preferences) β language, currency, sidebar labels (admins).
First week
Admin
Users, preferences, languages, all flocks, commercial data, reports, profile.
Manager
Operations, reports, clients, suppliers, egg sales β not admin-only tools.
Worker
Daily entry; menus limited to assigned flocks.
Role-specific overview: KPIs, shortcuts, vaccine reminders, and recent activity. Everything else lives under the sidebar groups (flocks, eggs, feed, etc.).
Flocks hold schedules, health, breeds, and expenses. Eggs record production and sales. Feed and medicine track stock, purchases, and usage against your birds.
Log doses and follow schedules. Due items can appear on the home dashboard.
Available to admin and manager: contacts, commercial fields, and activity history.
Analytics where your role allows. Every user can update profile and password; admins manage preferences and translation tools.
Use the sidebar language switcher (or header on mobile) for English, Bengali, or Arabic. The page may reload.
Admins can open Languages to edit JSON files under
messages/ (translations use next-intl).
Password for each account: 123456 (same as default seed users).