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
2. Open your copied repo folder in terminal and checkout `feature/backend` branch to use bundle with backend.
23
+
2. Open your copied repo folder in terminal and checkout `feature/serverless` branch to use bundle with backend.
24
24
25
25
```bash
26
-
git checkout feature/backend
26
+
git checkout feature/serverless
27
27
```
28
28
29
29
3. Install necessary modules, make sure that you have installed [npm](https://www.npmjs.com/get-npm):
30
30
31
31
```bash
32
32
npm install
33
-
# then for backend
34
-
cd backend
35
-
npm install
36
33
```
37
34
38
-
4. Install [angular-cli](https://cli.angular.io/) globally to use its commands in the terminal:
35
+
4. Install [serverless](https://serverless.com/) globally to use its commands in the terminal:
36
+
37
+
```bash
38
+
npm install --global serverless
39
+
```
40
+
41
+
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/):
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.
49
+
```bash
50
+
aws configure
51
+
```
52
+
53
+
7. Now you are able to deploy the project:
47
54
48
-
Go to `backend` directory and run `npm start`to start node.js backend.
55
+
Run `npm run build:serverless:deploy` to deploy the project to AWS Lambda. You will get the URL for your project.
49
56
50
-
Navigate to `http://localhost:4200/`. Use the following credentials to sign in the Dashboard: user: _[email protected]_ , password: _admin_
57
+
Navigate to the given URL. Use the following credentials to sign in the Dashboard: user: _[email protected]_ , password: _admin_
51
58
52
59
# FEATURES
53
60
@@ -61,6 +68,10 @@ Navigate to `http://localhost:4200/`. Use the following credentials to sign in t
0 commit comments