The project intend to help people seeking for the help in setting up serverless application on Angular Universal.
Run npm start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/browser
directory. Use the --prod
flag for a production build.
Run npm run build:ssr
to build the Angular Universal. The build artifacts will be stored in dist/server
and It will also generate the server side file dist/server.js
.
Run npm run serve:ssr
to serve the Angular Universal over AWS Lambda simulated using "Serverless framework".
Run npm run deploy
to deploy an application on Lambda. Be sure to install and configure AWS CLI before hitting this command.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help, please contact raise a issue / question in this git repository.