{"id":13506802,"url":"https://github.com/liyanlong/nuxt-egg","last_synced_at":"2025-07-27T19:08:08.131Z","repository":{"id":86193765,"uuid":"82360836","full_name":"liyanlong/nuxt-egg","owner":"liyanlong","description":"Nuxt.js  + Egg FrameWork","archived":false,"fork":false,"pushed_at":"2018-04-23T07:18:31.000Z","size":34,"stargazers_count":86,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T18:13:05.858Z","etag":null,"topics":["egg","egg-framework","nuxt","nuxt-egg"],"latest_commit_sha":null,"homepage":"http://nuxt-egg.liylblog.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liyanlong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-02-18T04:19:49.000Z","updated_at":"2024-08-15T05:13:08.000Z","dependencies_parsed_at":"2023-03-13T08:57:10.773Z","dependency_job_id":null,"html_url":"https://github.com/liyanlong/nuxt-egg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyanlong%2Fnuxt-egg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyanlong%2Fnuxt-egg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyanlong%2Fnuxt-egg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyanlong%2Fnuxt-egg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liyanlong","download_url":"https://codeload.github.com/liyanlong/nuxt-egg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819650,"owners_count":21166516,"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":["egg","egg-framework","nuxt","nuxt-egg"],"created_at":"2024-08-01T01:00:58.030Z","updated_at":"2025-04-14T04:21:28.081Z","avatar_url":"https://github.com/liyanlong.png","language":"JavaScript","readme":"\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/nuxt/nuxt.js\" target=\"_blank\"\u003e\n    \u003cimg width=\"100\" src=\"https://camo.githubusercontent.com/4aa5532ee9baf623c95b901372002dfa4e97ff01/687474703a2f2f696d6775722e636f6d2f56344c746f49492e706e67\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/eggjs/egg/\" target=\"_blank\"\u003e\n        \u003cimg width=\"250\" src=\"https://raw.githubusercontent.com/eggjs/egg/master/docs/assets/egg-logo.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n# Egg-Nuxt\n\n\u003e [Egg](https://eggjs.org/) + [Nuxt.js](https://nuxtjs.org) = 🔥\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![npm download][download-image]][download-url]\n[![lincense image][lincense-image]][lincense-url]\n\n[npm-image]: https://img.shields.io/npm/v/nuxt-egg.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/nuxt-egg\n[travis-image]: https://api.travis-ci.org/liyanlong/nuxt-egg.svg?branch=master\n[travis-url]: https://travis-ci.org/liyanlong/nuxt-egg\n[codecov-image]: https://codecov.io/github/liyanlong/nuxt-egg/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/liyanlong/nuxt-egg?branch=master\n[david-image]: https://img.shields.io/david/liyanlong/nuxt-egg.svg?style=flat-square\n[david-url]: https://david-dm.org/liyanlong/nuxt-egg\n[download-image]: https://img.shields.io/npm/dm/nuxt-egg.svg?style=flat-square\n[download-url]: https://npmjs.org/package/nuxt-egg\n[lincense-image]: https://img.shields.io/npm/l/nuxt-egg.svg\n[lincense-url]: https://github.com/liyanlong/nuxt-egg/blob/master/LICENSE\n\n## Requirement\n\n- `node \u003e= 6.0.0`\n\n## Quick Usage\n\n```bash\n$ npm install -g vue-cli\n$ vue init nuxt-egg/starter my_project\nor \n$ npm install -g egg-init\n$ egg-init --package=egg-boilerplate-nuxt my_project\n\n$ cd my_prject\n$ npm install\n$ npm run dev\n```\n\n## Direct Structure\n\u003e Look at [egg-framework](https://eggjs.org/zh-cn/basics/structure.html)\n\n```\nnuxt-egg-project\n├── .nuxt\n├── resources\n|   ├── pages\n│   ├── assets\n│   |   └── css\n│   |   └── img\n│   ├── static\n│   ├── layouts\n│   ├── middleware\n│   ├── plugins\n│   ├── components\n├── package.json\n├── app.js (option)\n├── agent.js (option)\n├── app\n|   ├── router.js\n│   ├── controller\n│   |   └── home.js\n│   ├── service (option)\n│   |   └── user.js\n│   ├── middleware (option)\n│   |   └── response_time.js\n│   ├── schedule (option)\n│   |   └── my_task.js\n│   ├── public (option)\n│   |   └── reset.css\n│   ├── view (option)\n│   |   └── home.tpl\n│   └── extend (option)\n│       ├── helper.js (option)\n│       ├── request.js (option)\n│       ├── response.js (option)\n│       ├── context.js (option)\n│       ├── application.js (option)\n│       └── agent.js (option)\n├── config\n|   ├── plugin.js\n|   ├── config.default.js\n│   ├── config.prod.js\n|   ├── config.test.js (option)\n|   ├── config.local.js (option)\n|   └── config.unittest.js (option)\n└── test\n    ├── middleware\n    |   └── response_time.test.js\n    └── controller\n        └── home.test.js\n```\n##  Nuxt.js Changes\n\n- The Nuxt config file is now in  `config.[dev].js`, `dev` allow set `default`, `unittest`, `local`, `prod`\n- The Nuxt project directory is `resources` (default)\n\n### config.default.js\n\n```js\nconst path = require('path');\nexports.nuxt = {\n  srcDir: path.join(__dirname, '../resources'),\n  rootDir: path.dirname(__dirname),\n}\n```\n**Or you can also do this**\n\n```js\n// config/config.default.js\nexports.nuxt = require('./config.nuxt.js');\n\n// config/config.nuxt.js\nmodule.exports = {\n  srcDir: ''\n  rootDir: ''\n}\n```\n\n## Live Demo\n\n- [nuxt-egg-examples](https://github.com/liyanlong/nuxt-egg-examples)\n- [http://nuxt-egg.liylblog.com/](http://nuxt-egg.liylblog.com/)\n\n## Documentation\n\n- [Egg.js](https://eggjs.org/)\n- [Nuxt.js](https://nuxtjs.org/guide/)\n- [Vue.js](http://vuejs.org/guide/)\n\n## Licenses\n\n- [EggJS license](https://github.com/eggjs/egg/blob/master/LICENSE)\n- [NuxtJS license](https://github.com/nuxt/nuxt.js/blob/master/LICENSE.md)\n- [VueJS license](https://github.com/vuejs/vue/blob/master/LICENSE)\n\n### Note\n- egg-init doesn't support download image now, so the logo.png will not be open normal.\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliyanlong%2Fnuxt-egg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliyanlong%2Fnuxt-egg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliyanlong%2Fnuxt-egg/lists"}