[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108915":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":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":9,"pushedAt":20,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":12,"starSnapshotCount":12,"syncStatus":24,"lastSyncTime":25,"discoverSource":26},108915,"gmt-maritime-website","danieledjang1-jpg\u002Fgmt-maritime-website","danieledjang1-jpg","Marine website",null,"JavaScript",116,0,113,3,37.3,false,"main",true,[],"2026-11-01 00:09:46","2026-11-15 23:57:55","# GMT Maritime and Transport Limited website\n\nA React\u002FVite frontend and Express\u002FMongoDB backend for GMT Maritime and Transport Limited. The public site has pages for Home, About, Services, Quote, Contact and a protected `\u002Fadmin` dashboard.\n\n## Before publishing\n\nThe current business phone number and physical location use the information provided. Company profile, mission, vision, values, and service scope include deliberately editable wording because they have not been independently confirmed. Replace all `[Editable]` text after management approval. No email address, certification, licence, partnership, route, performance promise, client, testimonial, or company history is claimed.\n\n## Requirements\n\n- Node.js 20+ and npm\n- MongoDB Community locally, or a MongoDB Atlas database\n\n## Install and configure\n\nOpen this folder in VS Code, then run from the project root:\n\n```bash\nnpm install\nnpm run install:all\n```\n\nCopy `server\u002F.env.example` to `server\u002F.env`, then set the values. Do not commit this file.\n\n```env\nPORT=5000\nMONGODB_URI=mongodb:\u002F\u002F127.0.0.1:27017\u002Fgmt_maritime\nCLIENT_URL=http:\u002F\u002Flocalhost:5173\nJWT_SECRET=use_a_long_unique_random_secret\nADMIN_EMAIL=your-private-admin-email@example.com\nADMIN_PASSWORD=use-a-strong-private-password\n```\n\nCopy `client\u002F.env.example` to `client\u002F.env` for local development:\n\n```env\nVITE_API_URL=http:\u002F\u002Flocalhost:5000\u002Fapi\n```\n\n## Start locally\n\nStart both apps from the project root:\n\n```bash\nnpm run dev\n```\n\nOr run separately:\n\n```bash\nnpm run dev --prefix server\nnpm run dev --prefix client\n```\n\nOpen `http:\u002F\u002Flocalhost:5173`. The API health check is `http:\u002F\u002Flocalhost:5000\u002Fapi\u002Fstatus`.\n\n## Test forms and dashboard\n\n1. Ensure MongoDB is running and the server logs `MongoDB connected`.\n2. Submit the Quote and Contact forms on the website. Required fields and email are validated on both client and server.\n3. Visit `\u002Fadmin`, sign in with `ADMIN_EMAIL` and `ADMIN_PASSWORD`, then click **Load Enquiries** or **Load Quotes**. You can change status or delete a submission.\n\n## Deploy\n\n### Frontend: Netlify or Vercel\n\n- Set root directory to `client`.\n- Build command: `npm run build`.\n- Publish directory: `dist`.\n- Add `VITE_API_URL=https:\u002F\u002FYOUR-API-DOMAIN\u002Fapi`.\n- Configure a SPA rewrite: on Netlify add `\u002F* \u002Findex.html 200` (or a `_redirects` file); Vercel automatically handles Vite SPA deployment when configured appropriately.\n\n### Backend: Render, Railway, or similar Node hosting\n\n- Set root directory to `server`.\n- Build command: `npm install`.\n- Start command: `npm start`.\n- Add `MONGODB_URI`, `JWT_SECRET`, `ADMIN_EMAIL`, `ADMIN_PASSWORD`, `PORT`, and `CLIENT_URL` environment variables in the host dashboard.\n- Set `CLIENT_URL` to the final frontend origin (or comma-separated origins when needed).\n- In MongoDB Atlas, allow the hosting provider IP range and create a database user with a strong password.\n\nAfter deployment, update `VITE_API_URL`, rebuild\u002Fredeploy the frontend, and test both form submissions and admin login.\n\n## Security notes\n\nAdmin credentials and MongoDB configuration remain server-side only. Use a long random JWT secret and a unique admin password. The API includes CORS, request-size limits, rate limiting, server-side validation and protected admin endpoints. For a larger production operation, replace environment-based single-owner authentication with persisted, hashed user accounts and audit logging.\n","这是一个为海运与运输企业GMT Maritime and Transport Limited定制的全栈网站系统，采用React\u002FVite前端与Express\u002FMongoDB后端架构。核心功能包括响应式公开页面（首页、服务、报价、联系）、表单数据收集（报价与咨询）、JWT认证的管理员后台（支持查看、状态更新与删除提交记录），以及前后端分离部署能力。技术上强调双端环境变量隔离、客户端与服务端双重表单验证、MongoDB数据持久化及SPA路由处理。适用于中小型航运、物流或货运代理公司快速上线专业官网并管理客户询盘。",2,"2026-11-24 04:35:19","CREATED_QUERY"]