You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-14Lines changed: 34 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,17 @@
1
-
# Material Angular Dashboard
2
1
3
-
Welcome to the first dark dashboard with Google Material Design and Angular!
2
+
# Material Angular Dashboard + AWS Lambda
3
+
4
+
Welcome to the first dark dashboard with Google Material Design and Angular powered with [AWS Lambda](https://aws.amazon.com/lambda/) deployment facility!
Its much more fun with the [demo](http://material-angular-dashboard.creativeit.io).
8
+
# Overview
9
+
10
+
This bundle contains the [`feature/backend`](https://github.com/CreativeIT/material-angular-dashboard/tree/feature/backend) bundle code and configuration for deployment on AWS Lambda.
11
+
12
+
AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume - there is no charge when your code is not running.
13
+
14
+
Its much more fun with the [demo](https://g5ope910kg.execute-api.eu-central-1.amazonaws.com/production/).
8
15
9
16
Material admin template is absolutely free for commercial usage theme, based on Google Material Design guidelines.
10
17
@@ -20,34 +27,43 @@ The steps below will take you through cloning your own fork, installing dependen
2. Open your copied repo folder in terminal and checkout `feature/backend` branch to use bundle with backend.
30
+
2. Open your copied repo folder in terminal and checkout `feature/serverless` branch to use bundle with serverless deployment configuration.
24
31
25
32
```bash
26
-
git checkout feature/backend
33
+
git checkout feature/serverless
27
34
```
28
35
29
36
3. Install necessary modules, make sure that you have installed [npm](https://www.npmjs.com/get-npm):
30
37
31
38
```bash
32
39
npm install
33
-
# then for backend
34
-
cd backend
35
-
npm install
36
40
```
37
41
38
-
4. Install [angular-cli](https://cli.angular.io/) globally to use its commands in the terminal:
42
+
4. Install [serverless](https://serverless.com/) globally to use its commands in the terminal:
39
43
40
44
```bash
41
-
npm install --global @angular/cli
45
+
npm install --global serverless
42
46
```
43
47
44
-
5.Now you are able to run or build the project:
48
+
5.Install [awscli](https://aws.amazon.com/cli/) to manage AWS services (AWS Lambda in our case), make sure that you have installed [pip](https://pip.pypa.io/en/stable/installing/):
45
49
46
-
Run `npm start` or `ng serve` for a dev server. The app will automatically reload if you change any of the source files. Or run `npm run build` or `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
50
+
```bash
51
+
pip install awscli
52
+
```
47
53
48
-
Go to `backend` directory and run `npm start` to start node.js backend.
54
+
6.[Create IAM User](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_console) for automatic project deployment, make sure that you have [AWS account]([https://aws.amazon.com/console/](https://aws.amazon.com/console/)). Grant it AdministratorAccess policy. Remember its access key pair.
49
55
50
-
Navigate to `http://localhost:4200/`. Use the following credentials to sign in the Dashboard: user: _[email protected]_ , password: _admin_
56
+
7.[Configure awscli](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) with key pair given above:
57
+
58
+
```bash
59
+
aws configure
60
+
```
61
+
62
+
8. Now you are able to deploy the project:
63
+
64
+
Run `npm run build:serverless:deploy` to build and deploy the project to AWS Lambda. You will get the URL for your project.
65
+
66
+
Navigate to the given URL. Use the following credentials to sign in the Dashboard: user: _[email protected]_ , password: _admin_
51
67
52
68
# FEATURES
53
69
@@ -61,6 +77,10 @@ Navigate to `http://localhost:4200/`. Use the following credentials to sign in t
0 commit comments