{"id":20012802,"url":"https://github.com/hijiangtao/simple-server","last_synced_at":"2026-05-05T01:36:54.898Z","repository":{"id":83365711,"uuid":"109817569","full_name":"hijiangtao/simple-server","owner":"hijiangtao","description":"A funny server created with koa2.","archived":false,"fork":false,"pushed_at":"2018-06-19T13:18:04.000Z","size":747,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T15:09:38.979Z","etag":null,"topics":["koa2","node","server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hijiangtao.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-11-07T09:58:15.000Z","updated_at":"2018-06-19T09:52:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"75d9587a-45c7-4f77-8ca7-1083519f18ec","html_url":"https://github.com/hijiangtao/simple-server","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijiangtao%2Fsimple-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijiangtao%2Fsimple-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijiangtao%2Fsimple-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hijiangtao%2Fsimple-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hijiangtao","download_url":"https://codeload.github.com/hijiangtao/simple-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241448047,"owners_count":19964403,"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":["koa2","node","server"],"created_at":"2024-11-13T07:33:22.293Z","updated_at":"2026-05-05T01:36:54.843Z","avatar_url":"https://github.com/hijiangtao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-server\n\nA simple server implemented with Koa2, which you may not want to use it.\n\n## Usage\n\n```\n# Clone the repository\ngit clone git@github.com:hijiangtao/simple-server.git\n\n# Enter into the folder\ncd repoUrl\n\n# Install and test the application\nnpm install\nnpm run dev\n```\n\n## Structure\n\n* Routes: all routes rule should be put in `router` folder, there are seperated with `root.js` and `user.js`;\n* Views: all view templates should be put in `views` folder, you need to code with routes when you want to add a new page into current application.\n* Static Assets: all the files in `public` folder are static assets, which includes `css`, `js` and `img` three types sub-folders inside. You can include it in your view templates directly with rule like `/[type]/[name].[suffix]`.\n* webpack.config.js: the webapack configuration for this application, you need to specify the JavaScript files that you want to compile in the `entry` of `devConfig`, you can include them in your view templates with rule like `/dist/[name].js`.\n\nThe structure of this application shows below:\n\n```\n├── [4.0K]  api\n│   └── [4.0K]  v1\n│       └── [ 731]  index.js\n├── [4.0K]  conf\n│   ├── [ 185]  db.js\n│   └── [ 443]  sql.js\n├── [ 684]  index.js\n├── [ 11K]  LICENSE\n├── [ 970]  package.json\n├── [  67]  README.md\n├── [4.0K]  router\n│   ├── [ 180]  root.js\n│   └── [ 244]  user.js\n├── [4.0K]  util\n│   ├── [2.2K]  agg-utils.js\n│   └── [ 719]  base.js\n└── [4.0K]  views\n    └── [2.2K]  home.ejs\n```\n\n## VAST18\n\nThe specific wiki for VAST18 shows [here](https://github.com/hijiangtao/simple-server/tree/VAST18) (in `VAST18` branch).\n\n## Contact\n\nGithub [@hijiangtao](https://github.com/hijiangtao)\n\n## LICENSE\n\nApache License V2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhijiangtao%2Fsimple-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhijiangtao%2Fsimple-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhijiangtao%2Fsimple-server/lists"}