{"id":16325314,"url":"https://github.com/murrayee/react-nextjs-start","last_synced_at":"2026-05-05T18:36:39.678Z","repository":{"id":123979351,"uuid":"138277269","full_name":"murrayee/react-nextjs-start","owner":"murrayee","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-22T08:43:40.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-14T21:12:14.074Z","etag":null,"topics":["antd-motion","nextjs","react","redux","ssr"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murrayee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-22T08:34:08.000Z","updated_at":"2019-07-01T08:11:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"da5b707e-3dfb-425f-ad63-0bfb5aefadee","html_url":"https://github.com/murrayee/react-nextjs-start","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"e914c4787243e9f109fcc15b0c90879b3ed73d1e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murrayee%2Freact-nextjs-start","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murrayee%2Freact-nextjs-start/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murrayee%2Freact-nextjs-start/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murrayee%2Freact-nextjs-start/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murrayee","download_url":"https://codeload.github.com/murrayee/react-nextjs-start/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227631,"owners_count":22035671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antd-motion","nextjs","react","redux","ssr"],"created_at":"2024-10-10T23:04:45.652Z","updated_at":"2025-10-20T04:18:57.719Z","avatar_url":"https://github.com/murrayee.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 安装、启动、部署\n```JavaScript\n\"scripts\": {\n    \"dev\": \"node server.js\",\n    \"build\": \"next build\",\n    \"start\": \"NODE_ENV=production pm2 start server.js\",\n    \"stop\": \"pm2 stop server.js\"\n  }\n```\n**1、下载好项目后，安装依赖。**\n```JavaScript\nnpm install 或者 yarn install\n```\n**2、启动项目。**\n```JavaScript\nnpm run dev\n```\n**3、开发完成后，生产环境测试。**\n```JavaScript\nnpm run build  // 先打包\nnpm start  // 再启动\n```\n**4、检测没有问题，部署到服务器。**\n\n以阿里云为例，react服务端架构部署的基本步骤是，使用各种方法将前端项目上传到服务端，可以是FTP上传，也\n可以在服务器使用git clone下载项目。\n\n你得在服务器安装好node环境，然后和上面的第一步一样，在服务端安装依赖，然后就不要用dev启动项目，而是start，start设置成pm2启动，这样你的项目就能在服务端一直运行。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurrayee%2Freact-nextjs-start","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurrayee%2Freact-nextjs-start","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurrayee%2Freact-nextjs-start/lists"}