{"id":14981924,"url":"https://github.com/minhuyen/generator-expressjs-rest","last_synced_at":"2026-03-04T15:32:12.501Z","repository":{"id":35484930,"uuid":"143951584","full_name":"minhuyen/generator-expressjs-rest","owner":"minhuyen","description":"Project template for an ExpressJS application","archived":false,"fork":false,"pushed_at":"2026-02-15T15:16:01.000Z","size":5773,"stargazers_count":55,"open_issues_count":86,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T22:29:50.679Z","etag":null,"topics":["admin-dashboard","api","babel","docker","express","rest-api","swagger","yeoman"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/minhuyen.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-08T02:38:37.000Z","updated_at":"2025-10-26T19:17:07.000Z","dependencies_parsed_at":"2023-10-16T06:38:24.831Z","dependency_job_id":"3dd88697-285f-4091-ba25-74ea2e5e94de","html_url":"https://github.com/minhuyen/generator-expressjs-rest","commit_stats":{"total_commits":397,"total_committers":7,"mean_commits":"56.714285714285715","dds":"0.34256926952141054","last_synced_commit":"9ec1b6dbb455631b02c46e29f0081b367a5dddfc"},"previous_names":["minhuyen/generate-expressjs-api"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/minhuyen/generator-expressjs-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhuyen%2Fgenerator-expressjs-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhuyen%2Fgenerator-expressjs-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhuyen%2Fgenerator-expressjs-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhuyen%2Fgenerator-expressjs-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minhuyen","download_url":"https://codeload.github.com/minhuyen/generator-expressjs-rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhuyen%2Fgenerator-expressjs-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30084968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["admin-dashboard","api","babel","docker","express","rest-api","swagger","yeoman"],"created_at":"2024-09-24T14:04:29.306Z","updated_at":"2026-03-04T15:32:12.478Z","avatar_url":"https://github.com/minhuyen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generator Expressjs Rest\n\n[![Build Status](https://travis-ci.org/minhuyen/generator-expressjs-rest.svg?branch=master)](https://travis-ci.org/minhuyen/generator-expressjs-rest)\n\n## Features\n\n- User Registration\n- Basic Authentication with username and password\n- Admin use [react-admin](https://github.com/marmelab/react-admin)\n- Oauth 2.0 Authentication\n  - Facebook\n  - Google\n- Upload Photo to S3 amazon\n- Docker\n\n### Prerequisites\n\n- [Docker (at least 1.10)](https://www.docker.com/)\n- [Docker-compose (at least 1.6)](https://docs.docker.com/compose/install/)\n\n## Installation\n\nFist, install [Yeoman](http://yeoman.io) and generator-expressjs-rest using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).\n\n```bash\nnpm install -g yo\nnpm install -g generator-expressjs-rest\n```\n\n## Generators\n\nThen, you can use `yo` to generate your project.\n\n```bash\nyo expressjs-rest # generate a new project\nyo expressjs-rest:api # generate a new api endpoint inside your project\n```\n\n## Commands\n\nAfter you generate your project, these commands.\n\n```bash\ncd your-project-name\nmv .env.example .env\n\ndocker-compose build\ndocker-compose run --rm client yarn build\ndocker-compose up\n```\n\n## Playing locally\n\n## Deploy\n\n## Directory structure\n\n### Overview\n\n```bash\nsrc/\n├─ api/\n│  ├─ auth/\n│  │  ├─ index.js\n│  │  ├─ auth.service.js\n│  │  ├─ auth.validation.js\n│  │  ├─ auth.controller.js\n│  │  └─ auth.test.js\n│  ├─ uploads/\n│  │  ├─ index.js\n│  │  ├─ upload.controller.js\n│  ├─ users/\n│  │  ├─ index.js\n│  │  ├─ user.controller.js\n│  │  ├─ user.validation.js\n│  │  ├─ user.model.js\n│  │  ├─ user.service.js\n│  │  └─ user.test.js\n│  └─ index.js\n├─ services/\n│  ├─ index.js\n│  ├─ jwt.js\n│  ├─ logger.js\n│  ├─ mailgun.js\n│  ├─ mongoose.js\n│  ├─ passport.js\n│  ├─ response.js\n│  ├─ s3.js\n│  ├─ swagger.js\n│  └─ your-service.js\n├─ app.js\n├─ config.js\n└─ index.js\n```\n\n### src/api/\n\nHere is where the API endpoints are defined. Each API has its own folder.\n\n#### src/api/some-endpoint/model.js\n\nIt defines the Mongoose schema and model for the API endpoint. Any changes to the data model should be done here.\n\n#### src/api/some-endpoint/controller.js\n\nThis is the API controller file. It defines the main router middlewares which use the API model.\n\n#### src/api/some-endpoint/index.js\n\nThis is the entry file of the API. It defines the routes using, along other middlewares (like session, validation etc.), the middlewares defined in the `some-endpoint.controller.js` file.\n\n### services/\n\nHere you can put `helpers`, `libraries` and other types of modules which you want to use in your APIs.\n\n## TODO\n\n- Support optional phone authentication\n- Support optional email confirmation process\n- Support Twitter and other social login methods\n- Socket.io support\n\nPRs are welcome.\n\n## Credits\n\n[@minhuyen](https://github.com/minhuyen) and all [contributors](https://github.com/minhuyen/generator-express-api/graphs/contributors)\n\n## License\n\nMIT © [minhuyen](https://github.com/minhuyen)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhuyen%2Fgenerator-expressjs-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhuyen%2Fgenerator-expressjs-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhuyen%2Fgenerator-expressjs-rest/lists"}