├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LAB1.md ├── LAB2.md ├── LAB3.md ├── LAB4.md ├── LAB5.MD ├── LICENSE ├── README.md ├── amplify.yml ├── amplify ├── .config │ └── project-config.json └── backend │ ├── api │ └── teamtasks │ │ ├── parameters.json │ │ ├── schema.graphql │ │ └── stacks │ │ └── CustomResources.json │ ├── auth │ └── teamtasksf9538190 │ │ ├── parameters.json │ │ └── teamtasksf9538190-cloudformation-template.yml │ ├── backend-config.json │ ├── function │ └── teamtasksf9538190PreSignup │ │ ├── function-parameters.json │ │ ├── parameters.json │ │ ├── src │ │ ├── email-filter-whitelist.js │ │ ├── event.json │ │ ├── index.js │ │ ├── package-lock.json │ │ └── package.json │ │ └── teamtasksf9538190PreSignup-cloudformation-template.json │ └── hosting │ └── S3AndCloudFront │ ├── parameters.json │ └── template.json ├── angular.json ├── browserslist ├── customer.json ├── e2e ├── protractor.conf.js ├── src │ ├── app.e2e-spec.ts │ └── app.po.ts └── tsconfig.json ├── karma.conf.js ├── mandatorycomments.json ├── package.json ├── reminder.json ├── src ├── app │ ├── API.service.ts │ ├── app-routing.module.ts │ ├── app.component.css │ ├── app.component.html │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── auth │ │ ├── auth.component.css │ │ ├── auth.component.html │ │ ├── auth.component.spec.ts │ │ └── auth.component.ts │ ├── dashboard │ │ ├── dashboard.component.css │ │ ├── dashboard.component.html │ │ ├── dashboard.component.spec.ts │ │ └── dashboard.component.ts │ ├── goals │ │ ├── goals.component.css │ │ ├── goals.component.html │ │ ├── goals.component.spec.ts │ │ └── goals.component.ts │ ├── momentpipe.ts │ ├── monthlytasks │ │ ├── monthlytasks.component.css │ │ ├── monthlytasks.component.html │ │ ├── monthlytasks.component.spec.ts │ │ └── monthlytasks.component.ts │ ├── overview │ │ ├── overview.component.css │ │ ├── overview.component.html │ │ ├── overview.component.spec.ts │ │ └── overview.component.ts │ └── weeklytasks │ │ ├── weeklytasks.component.css │ │ ├── weeklytasks.component.html │ │ ├── weeklytasks.component.spec.ts │ │ └── weeklytasks.component.ts ├── assets │ └── .gitkeep ├── aws-exports.ts ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── graphql │ ├── mutations.graphql │ ├── mutations.ts │ ├── queries.graphql │ ├── queries.ts │ ├── schema.json │ ├── subscriptions.graphql │ └── subscriptions.ts ├── index.html ├── main.ts ├── polyfills.ts ├── styles.css └── test.ts ├── tasks.json ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.spec.json └── tslint.json /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing Guidelines 2 | 3 | Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional 4 | documentation, we greatly value feedback and contributions from our community. 5 | 6 | Please read through this document before submitting any issues or pull requests to ensure we have all the necessary 7 | information to effectively respond to your bug report or contribution. 8 | 9 | 10 | ## Reporting Bugs/Feature Requests 11 | 12 | We welcome you to use the GitHub issue tracker to report bugs or suggest features. 13 | 14 | When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already 15 | reported the issue. Please try to include as much information as you can. Details like these are incredibly useful: 16 | 17 | * A reproducible test case or series of steps 18 | * The version of our code being used 19 | * Any modifications you've made relevant to the bug 20 | * Anything unusual about your environment or deployment 21 | 22 | 23 | ## Contributing via Pull Requests 24 | Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that: 25 | 26 | 1. You are working against the latest source on the *master* branch. 27 | 2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already. 28 | 3. You open an issue to discuss any significant work - we would hate for your time to be wasted. 29 | 30 | To send us a pull request, please: 31 | 32 | 1. Fork the repository. 33 | 2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change. 34 | 3. Ensure local tests pass. 35 | 4. Commit to your fork using clear commit messages. 36 | 5. Send us a pull request, answering any default questions in the pull request interface. 37 | 6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation. 38 | 39 | GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and 40 | [creating a pull request](https://help.github.com/articles/creating-a-pull-request/). 41 | 42 | 43 | ## Finding contributions to work on 44 | Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start. 45 | 46 | 47 | ## Code of Conduct 48 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 49 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 50 | opensource-codeofconduct@amazon.com with any additional questions or comments. 51 | 52 | 53 | ## Security issue notifications 54 | If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue. 55 | 56 | 57 | ## Licensing 58 | 59 | See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution. 60 | 61 | We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes. 62 | -------------------------------------------------------------------------------- /LAB1.md: -------------------------------------------------------------------------------- 1 | # 1. LAB1 : Creating Angular project 2 | 3 | create a new Angular project using command and enable routing capabilities 4 | 5 | ``` 6 | ng new teamtasks --routing 7 | ``` 8 | 9 | 10 | Change directory to the project and install bootstrap css library 11 | 12 | ``` 13 | cd teamtasks 14 | npm install bootstrap --save 15 | ``` 16 | 17 | 18 | Add style in angular.json file. The styles bloc should look like below 19 | 20 | 21 | ``` 22 | 23 | "styles": [` 24 | "src/styles.css", 25 | "node_modules/bootstrap/dist/css/bootstrap.min.css" 26 | `], 27 | 28 | ``` 29 | 30 | 31 | 32 | Create angular components 33 | 34 | ``` 35 | ng g c auth 36 | ng g c weeklytasks 37 | ng g c monthlytasks 38 | ng g c goals 39 | ng g c dashboard 40 | ng g c overview 41 | ``` 42 | 43 | * Auth - Will be used to render amplify authenticator 44 | * weeklytasks - Will display tasks which will be created every week. Associated for every customer/group 45 | * monthlytasks - Will display tasks which will be created every month. Associated for every customer/group 46 | * goals - Will display yearly tasks or goals. These are tasks which are not associated with customer/group 47 | * dashboard - Will display dashboard or landing page after login 48 | * overview - Will display the current status of the tasks 49 | 50 | 51 | Now update app-routing-module.ts so as to navigate between angular components 52 | 53 | 54 | ``` 55 | import { NgModule } from '@angular/core'; 56 | import { Routes, RouterModule } from '@angular/router'; 57 | import { AuthComponent } from './auth/auth.component'; 58 | import { WeeklytasksComponent } from './weeklytasks/weeklytasks.component'; 59 | import { DashboardComponent } from './dashboard/dashboard.component'; 60 | import { MonthlytasksComponent } from './monthlytasks/monthlytasks.component'; 61 | import { GoalsComponent } from './goals/goals.component'; 62 | import { OverviewComponent } from './overview/overview.component'; 63 | 64 | 65 | const routes: Routes = [ 66 | { path: 'weeklytasks', component: WeeklytasksComponent }, 67 | { path: '', component: AuthComponent }, 68 | { path: 'dashboard', component: DashboardComponent }, 69 | { path: 'monthlytasks', component: MonthlytasksComponent }, 70 | { path: 'overview', component: OverviewComponent }, 71 | { path: 'goals', component: GoalsComponent } 72 | 73 | ]; 74 | 75 | @NgModule({ 76 | imports: [RouterModule.forRoot(routes)], 77 | exports: [RouterModule] 78 | }) 79 | export class AppRoutingModule { } 80 | ``` 81 | 82 | 83 | Update the Index.html as follows 84 | 85 | 86 | ``` 87 | 88 | 89 |
90 | 91 |