{"id":16982080,"url":"https://github.com/tenphi/angular-express-webpack-boilerplate","last_synced_at":"2025-04-12T02:21:08.046Z","repository":{"id":34601494,"uuid":"38549397","full_name":"tenphi/angular-express-webpack-boilerplate","owner":"tenphi","description":"Boilerplate for express+angular app with webpack builder","archived":false,"fork":false,"pushed_at":"2017-03-16T15:57:12.000Z","size":8,"stargazers_count":32,"open_issues_count":0,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T22:01:39.753Z","etag":null,"topics":[],"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/tenphi.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}},"created_at":"2015-07-04T22:23:16.000Z","updated_at":"2024-08-29T07:22:45.000Z","dependencies_parsed_at":"2022-08-03T21:45:13.395Z","dependency_job_id":null,"html_url":"https://github.com/tenphi/angular-express-webpack-boilerplate","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/tenphi%2Fangular-express-webpack-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenphi%2Fangular-express-webpack-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenphi%2Fangular-express-webpack-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenphi%2Fangular-express-webpack-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenphi","download_url":"https://codeload.github.com/tenphi/angular-express-webpack-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505921,"owners_count":21115354,"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":[],"created_at":"2024-10-14T02:07:14.804Z","updated_at":"2025-04-12T02:21:08.022Z","avatar_url":"https://github.com/tenphi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-express-webpack-boilerplate\n\nA comprehensive boilerplate for express+angular application that uses webpack. It works in both production and development modes and provides automatic rebundling and restaring while developing.\n\nThis webpack configuration has several predefined loaders:\n* [babel-loader](https://github.com/babel/babel-loader) for *.es6.js files\n* [less-loader](https://github.com/webpack/less-loader) for *.less files\n* [html-loader](https://github.com/webpack/html-loader) for *.html files\n* [css-loader](https://github.com/webpack/css-loader) for *.css files\n* [file-loader](https://github.com/webpack/file-loader) and [image-loader](https://github.com/novoda/image-loader) for *.jpeg, *.png, *.gif and *.svg files\n* [postcss-loader](https://github.com/postcss/postcss-loader) for css postprocessing (autoprefixer + csswring)\n\n...and plugins:\n* extract-text-webpack-plugin for external css bundle in production mode\n* stats-webpack-pluginto for [analyse](http://webpack.github.io/analyse/)\n\nDefault angular app has [angular-ui-router](https://github.com/angular-ui/ui-router) module.\n\nBased on the great article: [The ultimate webpack setup](http://www.christianalfoni.com/articles/2015_04_19_The-ultimate-webpack-setup)\n\n### installation\n\nClone the repo:\n\n```bash\n$ git clone git@github.com:tenphi/webpack-express-boilerplate.git my-project\n$ cd my-project\n```\n\nInstall dependencies:\n\n```bash\n$ npm install\n```\n\nInstall webpack globally\n```bash\n$ npm install -g webpack\n```\n\n### development\n\nRun server with:\n\n```bash\n$ npm start\n```\n\nIt runs express server on localhost on port 3000 and webpack-dev-server on port 3001 with proxing requests from the first one to the second one.\n\nYou can specify host of the application:\n\n```bash\n$ APP_HOST=appdomain.com npm start\n```\n\nApplication has two separate directory `frontend` and `backend`. The entry point for frontend is `frontend/app.es6.js` file and for backend it is `backend/server.js`.\n\n### production\n\nBuild assets for the application:\n\n```bash\n$ NODE_ENV=production webpack -p --config webpack.production.config.js\n```\n\nThen run the app:\n\n```bash\n$ NODE_ENV=production npm start\n```\n\nDo not forget to specify your app domain in `server.js` for production mode!\n\n### Have fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenphi%2Fangular-express-webpack-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenphi%2Fangular-express-webpack-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenphi%2Fangular-express-webpack-boilerplate/lists"}