{"id":28747927,"url":"https://github.com/darnley/ng-express","last_synced_at":"2026-05-04T00:34:46.384Z","repository":{"id":38731187,"uuid":"195689611","full_name":"darnley/ng-express","owner":"darnley","description":"Basic ready for production Angular application with ExpressJs server render","archived":false,"fork":false,"pushed_at":"2023-01-07T07:34:33.000Z","size":714,"stargazers_count":0,"open_issues_count":38,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-16T17:26:09.137Z","etag":null,"topics":["angular","docker","expressjs","ready-to-use"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/darnley.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}},"created_at":"2019-07-07T19:32:16.000Z","updated_at":"2019-07-10T00:30:02.000Z","dependencies_parsed_at":"2023-02-06T15:01:30.333Z","dependency_job_id":null,"html_url":"https://github.com/darnley/ng-express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darnley/ng-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnley%2Fng-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnley%2Fng-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnley%2Fng-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnley%2Fng-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darnley","download_url":"https://codeload.github.com/darnley/ng-express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnley%2Fng-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273046457,"owners_count":25036179,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["angular","docker","expressjs","ready-to-use"],"created_at":"2025-06-16T17:12:48.198Z","updated_at":"2026-05-04T00:34:41.327Z","avatar_url":"https://github.com/darnley.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgExpress\n\nBasic ready for production Angular application with ExpressJs server render\n\n## Installation\n\nUse the package manager [npm](https://www.npmjs.com/) to install NgExpress.\n\nIt is not a installable package. You must download it in a ZIP file and unpack in your favorite folder.\n\n## Usage\n\n### Development environment\nFirst of all, rename the `.env.example` file to `.env`. It will be used as an application configuration file. In the production environment, you are supposed to overwrite those configurations.\n\nIn development environment you can just run the following command in NgExpress root folder. It will install all the dependencies for NgExpress and the Angular application inside `/app` folder.\n\n```bash\n$ npm install\n```\n\nIf you would like to run the application watching its changes, just run the following command. It will also run `npm install`.\n\n```bash\n$ npm start\n```\n\n### Production environment\nThis package is ready for Docker. If you build the image and run the container, the application is ready for usage.\n\nIf you would like to publish the code yourself, just run the following command in the application's root folder.\n\n```bash\n$ npm run prod\n```\n\nIt will compile the Angular application into `/dist` folder in production mode. After that, you are free to delete `/app` folder in production environment to reduce disk usage.\n\nAfter compiling your Angular application, change the `NODE_ENV` in your environment variables or in `.env` file to `production`. It will enable the application caching (in `cache.js` file).\n\nLast of all, execute the application using you Node.js runtime.\n\n```bash\n$ node ./index.js\n```\n\nThe Dockerfile uses [PM2](http://pm2.keymetrics.io) to manage the Node.js process. You are free to use another process manager.\n\n#### Using Dockerfile\n\nFirst of all, you should build your Docker image. In a command prompt of your choice, run the following command to create an image. The `-t` flag lets you tag your image so it's easier to find later using the `docker images` command.\n\n```bash\n$ docker build -t \u003cyour namespace\u003e/\u003cyour application name\u003e .\n```\n\nYour image will now be listed by Docker.\n\n```bash\n$ docker images\n\n# Example\nREPOSITORY                                  TAG        ID              CREATED\nnode                                        10         1934b0b038d1    5 days ago\n\u003cyour namespace\u003e/\u003cyour application name\u003e    latest     d64d3505b0d2    1 minute ago\n```\n\nRunning your image with `-d` runs the container in detached mode, leaving the container running in the background. The `-p` flag redirects a public port to a private port inside the container. Run the image you previously built.\n\n```bash\n$ docker run -p 49160:3000 -d \u003cyour namespace\u003e/\u003cyour application name\u003e\n```\n\nThe `49160` is the host port which will forward the traffic to port `3000` in Docker machine. In this example, just access `http://localhost:49160` through your favorite browser. You are free to change this port.\n\n## Using another Angular application\nThis package is delivered with a standard and basic Angular application. If you would like to use your already existent Angular application, just follow these steps:\n\n- Remove all the files from `/app` folder\n- Copy your existent Angular application or create a new one in `/app` folder\n\nYou must have `@angular/cli` globally installed, otherwise you should modify the scripts in the `package.json` file.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarnley%2Fng-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarnley%2Fng-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarnley%2Fng-express/lists"}