[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108916":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":14,"fork":14,"defaultBranch":15,"hasWiki":16,"hasPages":14,"topics":17,"createdAt":9,"pushedAt":18,"updatedAt":19,"readmeContent":20,"aiSummary":21,"trendingCount":12,"starSnapshotCount":12,"syncStatus":22,"lastSyncTime":23,"discoverSource":24},108916,"jalops-electrical-website","danieledjang1-jpg\u002Fjalops-electrical-website","danieledjang1-jpg","Official website project for Jalops Electrical Services",null,"JavaScript",113,0,37,false,"main",true,[],"2026-10-31 22:58:01","2026-11-05 20:29:36","# Jalops Electrical Services Website\n\nA full-stack React + Vite frontend and Express + MongoDB backend for Jalops Electrical Services.\n\n## Requirements\n- Node.js 20+\n- MongoDB local instance or MongoDB Atlas database\n- npm\n\n## 1. Configure the backend\n```bash\ncd server\nnpm install\ncopy .env.example .env\n```\nOn macOS\u002FLinux use `cp .env.example .env`. Edit `server\u002F.env`:\n- `MONGODB_URI`: your MongoDB connection string\n- `JWT_SECRET`: a long random secret\n- `ADMIN_NAME`, `ADMIN_EMAIL`, `ADMIN_PASSWORD`: initial administrator credentials\n- `CLIENT_ORIGIN`: normally `http:\u002F\u002Flocalhost:5173`\n\nCreate the initial admin account:\n```bash\nnpm run seed:admin\n```\nThe seed command creates the admin if it does not already exist. Change the initial password before a public launch.\n\nStart the API:\n```bash\nnpm run dev\n```\nAPI health check: `http:\u002F\u002Flocalhost:5000\u002Fapi\u002Fhealth`\n\n## 2. Configure the frontend\nOpen a second terminal:\n```bash\ncd client\nnpm install\ncopy .env.example .env\nnpm run dev\n```\nOpen `http:\u002F\u002Flocalhost:5173`.\n\n## Main routes\n- `\u002F` Home\n- `\u002Fabout` About\n- `\u002Fservices` Services\n- `\u002Fproducts` Product catalogue\n- `\u002Fquote` Request a quote\n- `\u002Fcontact` Contact\n- `\u002Fadmin\u002Flogin` Admin login\n- `\u002Fadmin` Protected dashboard\n\n## Admin\nSign in using the values configured in `server\u002F.env`. From the dashboard you can create, edit and delete catalogue products, review contact enquiries and quotation requests, and update enquiry statuses.\n\n## API\n- `POST \u002Fapi\u002Fenquiries` contact form\n- `GET \u002Fapi\u002Fenquiries` admin list\n- `PATCH \u002Fapi\u002Fenquiries\u002F:id\u002Fstatus` admin status update\n- `POST \u002Fapi\u002Fquotes` quotation form\n- `GET \u002Fapi\u002Fquotes` admin list\n- `PATCH \u002Fapi\u002Fquotes\u002F:id\u002Fstatus` admin status update\n- `GET \u002Fapi\u002Fproducts` public catalogue\n- `GET \u002Fapi\u002Fproducts\u002F:id` public product detail\n- `POST \u002Fapi\u002Fproducts` admin create\n- `PUT \u002Fapi\u002Fproducts\u002F:id` admin update\n- `DELETE \u002Fapi\u002Fproducts\u002F:id` admin delete\n- `POST \u002Fapi\u002Fauth\u002Flogin` admin login\n- `GET \u002Fapi\u002Fauth\u002Fme` current admin\n- `GET \u002Fapi\u002Fdashboard` admin summary\n\n## Business content accuracy\nService and product categories are presented as proposed catalogue content and should be confirmed by management before publication. Product entries are clearly labelled as catalogue examples; no price or stock claims are made. Replace editable company profile copy with owner-approved details. No registration numbers, certifications, years of experience, warranties or testimonials are fabricated.\n\n## Production deployment\n1. Deploy the Express server to a Node hosting provider and provision MongoDB Atlas.\n2. Set production environment variables (`NODE_ENV=production`, `MONGODB_URI`, `JWT_SECRET`, `ADMIN_*`, `CLIENT_ORIGIN`).\n3. Deploy the `client` folder as a static Vite site. Set `VITE_API_URL` to the deployed API base URL, e.g. `https:\u002F\u002Fapi.example.com\u002Fapi`.\n4. Configure the frontend host's SPA rewrite so unknown paths serve `index.html`.\n5. Use HTTPS, restrict `CLIENT_ORIGIN` to the exact production frontend origin, use a strong admin password, and rotate secrets.\n6. Review service\u002Fproduct content with the business owner before publishing.\n\n## Notes\n- Contact and quote submissions are validated on both client and server and persisted in MongoDB.\n- Admin access uses bcrypt password hashing and JWT authentication. Tokens are stored in session storage and sent in the Authorization header.\n- The frontend uses text-based product image URLs for simple catalogue maintenance. Use image URLs from assets you own or are licensed to use.\n","这是一个为电气服务公司Jalops Electrical Services定制开发的全栈企业官网，采用React + Vite前端与Express + MongoDB后端架构。核心功能包括响应式主页、服务与产品目录展示、在线报价与联系表单提交，以及带身份认证的管理员后台，支持产品管理、客户咨询与报价请求的审核与状态跟踪。技术上集成JWT鉴权、环境变量配置、数据种子初始化及健康检查接口，兼顾开发便捷性与生产部署规范。适用于中小型电气工程服务商快速上线专业、可维护的数字化门户，尤其适合需自主管理服务内容与客户线索的本地化技术服务商。",2,"2026-11-24 04:35:19","CREATED_QUERY"]