|
| 1 | +========= |
| 2 | +First Use |
| 3 | +========= |
| 4 | + |
| 5 | +In this section you will learn the basics to Get Ready! |
| 6 | + |
| 7 | +Pre-requisites |
| 8 | +-------------- |
| 9 | + |
| 10 | +To build solution you need to certify about these components first |
| 11 | + |
| 12 | +* `.NET Core 2.1 <https://www.microsoft.com/net/download>`_ |
| 13 | +* `node 8 <https://nodejs.org/en/>`_ |
| 14 | +* npm 5 |
| 15 | +* `Angular CLI 6.1 <https://github.com/angular/angular-cli/wiki>`_ |
| 16 | + |
| 17 | + |
| 18 | +Build Files |
| 19 | +----------- |
| 20 | + |
| 21 | +After :download:`download <https://github.com/brunohbrito/JP-Project/archive/master.zip>` or `clone <https://github.com/brunohbrito/JP-Project>`_ the initial state of project is: |
| 22 | + |
| 23 | +* Use Sql Server LocalDb |
| 24 | +* Temporary Certificate |
| 25 | +* Auto Migration enabled |
| 26 | + |
| 27 | +Using build.bat |
| 28 | +^^^^^^^^^^^^^^ |
| 29 | + |
| 30 | +Open folder *build* and execute build.bat. The file will install Nuget and NPM dependencies. Then compile and run. |
| 31 | + |
| 32 | +Using build.ps1 |
| 33 | +^^^^^^^^^^^^^^ |
| 34 | + |
| 35 | +Sometimes there are missing parameters at Environment Path, so the build.bat can't build. |
| 36 | + |
| 37 | +Open powershell as Admin. Navigate to build folder. Execute these commands: |
| 38 | + |
| 39 | +* Set-ExecutionPolicy Unrestricted |
| 40 | +* .\build.ps1 |
| 41 | +* Set-ExecutionPolicy AllSigned |
| 42 | + |
| 43 | +.. raw:: html |
| 44 | + |
| 45 | + <div style="position: relative; height: 0; overflow: hidden; max-width: 100%; height: auto;"> |
| 46 | + <iframe src="https://player.vimeo.com/video/288753436?color=ff9933&title=0&byline=0" width="800" height="600" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> |
| 47 | + </div> |
| 48 | + |
| 49 | + |
| 50 | +Using VS and VSCode |
| 51 | +-------------------- |
| 52 | + |
| 53 | +The default way to Start the project. |
| 54 | + |
| 55 | +SSO and API |
| 56 | +^^^^^^^^^^^ |
| 57 | +To load project open src/JpProject.sln vith Visual Studio. Now you need to set Multiple Startup Projects. |
| 58 | + |
| 59 | +.. image:: ../images/multiple-startup-project.png |
| 60 | + |
| 61 | +Run the project |
| 62 | + |
| 63 | +User Management |
| 64 | +^^^^^^^^^^^^^^^ |
| 65 | + |
| 66 | +Open VSCode then go to File > Open Folder > Locate src\Frontend\Jp.UserManagement. |
| 67 | + |
| 68 | +Open Terminal :kbd:`CTRL` + :kbd:`'`. Type: |
| 69 | + |
| 70 | +* npm install |
| 71 | +* ng serve |
| 72 | + |
| 73 | +Wait and open Browser at http://localhost:4200 |
| 74 | + |
| 75 | +.. raw:: html |
| 76 | + |
| 77 | + <div style="position: relative; height: 0; overflow: hidden; max-width: 100%; height: auto;"> |
| 78 | + <iframe src="https://player.vimeo.com/video/288762840?color=ff9933&title=0&byline=0" width="800" height="600" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> |
| 79 | + </div> |
0 commit comments