Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 8d5832a

Browse files
committed
Merge remote-tracking branch 'remotes/origin/dev' into dev
2 parents 876d869 + dff6afd commit 8d5832a

17 files changed

Lines changed: 77 additions & 58 deletions

File tree

37.6 KB
Loading
145 KB
Loading

docs/images/stress/cpu.JPG

21.5 KB
Loading
290 KB
Loading
24.7 KB
Loading
49.1 KB
Loading

docs/index.rst

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Helping teams and entrepreneurs to achieve the company's primary purpose: Maximi
1616

1717
Now we are online! `See it in action <https://jpproject.azurewebsites.net/admin-ui>`_
1818

19-
There is an intro video too!
19+
There is a intro video too!
2020

2121
.. raw:: html
2222

@@ -32,44 +32,6 @@ Do you love it? give us a :yellow:`Star!` ⭐
3232
.. raw:: html
3333

3434
<iframe src="https://ghbtns.com/github-btn.html?user=brunohbrito&repo=JP-Project&type=star&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
35-
<br>
36-
37-
38-
Features 🏷️
39-
-----------
40-
41-
The complete solution are composed by:
42-
43-
- IdentityServer4 UI. Made with ASP.NET Core MVC. Indeed it's based in `QuickstartUI <https://github.com/IdentityServer/IdentityServer4.Quickstart.UI>`_ with few modifications for separation of concern.
44-
- A RESTful API to expose their features. It's integrated with Swagger.
45-
- Administration Panel UI for IdentityServer4 and users. Users are using ASP.NET Core Identity.
46-
- User self Management UI. Panel for user to change his profile. He can also create, change or recover a password.
47-
48-
49-
Docker
50-
^^^^^^^
51-
52-
Entire solution is available on docker. Easy as: `docker-compose up` and go to http://localhost:5000.
53-
54-
Azure DevOps
55-
^^^^^^^^^^^^
56-
57-
If you plan to extend it for your own needs it has yaml for Continuous integration and other file with Artifacts for Continuous Delivery with Azure DevOps.
58-
59-
60-
Translations
61-
^^^^^^^^^^^^
62-
63-
It's available for several languages. Most of them was auto generated by **Google Translation**.
64-
65-
- English
66-
- Portuguese (pt-BR) *auto translated*
67-
- Spanish (es) *auto translated*
68-
- French (fr) *auto translated*
69-
- Dutch (nl) *auto translated*
70-
- Russian (ru) *auto translated*
71-
- Chinese simplified (zh-CN) *auto translated*
72-
- Chinese traditional (zh-TW) *auto translated*
7335

7436

7537
Contributing
@@ -97,7 +59,8 @@ There are several ways we can help you out.
9759
intro/architecture
9860
intro/contributing
9961
intro/code_of_conduct
100-
intro/contributors
62+
intro/contributors.md
63+
intro/stress_test_results
10164

10265
.. toctree::
10366
:maxdepth: 2

docs/intro/stress_test_results.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Stress Tests Results
2+
====================
3+
4+
The stress file was created with JMeter and executed in Blazemeter. The results was described below.
5+
6+
7+
Scenario
8+
--------
9+
10+
The test scenario is described below
11+
12+
Script Steps
13+
^^^^^^^^^^^^
14+
15+
The steps of testing was:
16+
1. Load Login page
17+
2. Login
18+
3. Load Home page
19+
4. Load Logout page
20+
5. Logout
21+
6. Load login page
22+
23+
Machine config:
24+
^^^^^^^^^^^^^^
25+
26+
Azure B1, it's the most basic Machine of Azure.
27+
* 100 ACU
28+
* 1.75gb Memory
29+
30+
The database was Azure SQL with 5 DTU's (most basic)
31+
32+
Blaze Meter Results
33+
--------------------
34+
35+
* 50 v-Users
36+
* 10 minutes
37+
38+
During tests, average CPU utilization was 13,58% and Memory consumption was about 230mb.
39+
40+
.. image:: ../images/stress/cpu.jpg
41+
42+
.. image:: ../images/stress/during-blazemeter.png
43+
44+
Timeline report
45+
^^^^^^^^^^^^^^^
46+
.. image:: ../images/stress/timelinegraph.jpg
47+
48+
49+
Aggregate report
50+
^^^^^^^^^^^^^^^^
51+
.. image:: ../images/stress/agreggatereport.JPG
52+
53+
54+
Result file
55+
^^^^^^^^^^^^
56+
Blazer meter `Results <https://a.blazemeter.com/app/executive-summary/index.html?master_id=20009165#/>`_

src/Backend/Jp.UserManagement/Controllers/ManagementController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public async Task<ActionResult<DefaultResponse<UserViewModel>>> UserData()
4141
return Response(user);
4242
}
4343

44-
[Route("update-profile"), HttpPost]
44+
[Route("update-profile"), HttpPut]
4545
public async Task<ActionResult<DefaultResponse<bool>>> UpdateProfile([FromBody] UserViewModel model)
4646
{
4747
if (!ModelState.IsValid)
@@ -56,7 +56,7 @@ public async Task<ActionResult<DefaultResponse<bool>>> UpdateProfile([FromBody]
5656
}
5757

5858

59-
[Route("update-profile-picture"), HttpPost]
59+
[Route("update-profile-picture"), HttpPut]
6060
public async Task<ActionResult<DefaultResponse<bool>>> UpdateProfilePicture([FromBody] ProfilePictureViewModel model)
6161
{
6262
if (!ModelState.IsValid)
@@ -70,7 +70,7 @@ public async Task<ActionResult<DefaultResponse<bool>>> UpdateProfilePicture([Fro
7070
return Response(true);
7171
}
7272

73-
[Route("change-password"), HttpPost]
73+
[Route("change-password"), HttpPut]
7474
public async Task<ActionResult<DefaultResponse<bool>>> ChangePassword([FromBody] ChangePasswordViewModel model)
7575
{
7676
if (!ModelState.IsValid)

src/Backend/Jp.UserManagement/Controllers/UserAdminController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public async Task<ActionResult<DefaultResponse<UserViewModel>>> Details(string u
5656
}
5757

5858

59-
[HttpPost, Route("update"), Authorize(Policy = "Admin")]
59+
[HttpPut, Route("update"), Authorize(Policy = "Admin")]
6060
public async Task<ActionResult<DefaultResponse<bool>>> Update([FromBody] UserViewModel model)
6161
{
6262
if (!ModelState.IsValid)

0 commit comments

Comments
 (0)