# PaperAdmin

PaperAdmin is a bootstrap single page dashboard developed using Angular JS 4. PaperAdmin features built-in components to make dashboard development
easy. It features custom components such as calendars, list views with CRUD(Create, Read, Update, Delete) functionality, pie charts with status and custom 
cards to display relevant information.

## Demo
https://mohdrashid.github.io/PaperAdmin

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Credits
Some parts of styles have been adopted from <a href="http://www.medialoot.com/item/lumino-admin-bootstrap-template/">Medialoot</a>


## License
MIT © [Mohammed Rashid](mailto:mohmad.rashid@hotmail.com)



JAYPEE SANCHEZ INSTALLED PACKAGES
https://www.npmjs.com/package/ngx-loading
	npm install --save ngx-loading@1.0.14
	
Popup / ngdialog

npm install --save jquery@3.3.1
npm install --save-dev @types/jquery

	
=================Build Production =======================
-> Open powershell, shellscript doesn't work well with --base-href
ng build --prod --base-href "/app/"

add web.config to inside dist folder and add 

<configuration>
<system.webServer>
    <rewrite>
      <rules>
        <rule name="Frontend" stopProcessing="true">
			<match url=".*" />
				<conditions logicalGrouping="MatchAll">
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                </conditions>
				<action type="Rewrite" url="/" />
		</rule>
      </rules>
    </rewrite>
</system.webServer>
</configuration>

---------------------AZURE Virtual Path--------------------------
Virtual Path: /app
Physical Path: site\wwwroot\Gdpr\frontend
Uncheck every thing so it become as application

---------------------Release through Visual Studio--------------------------

	-> Only release the dist folder
	-> In azure, the root folder is /frontend therefore all of the files and folders inside dist/ must be copied outside