Coder Social home page Coder Social logo

sinipelto / securewebapp Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 919 KB

SecureWebApp - Secure Web Application Template for ASP.NET Core 5.0

License: MIT License

C# 76.88% HTML 22.32% CSS 0.69% JavaScript 0.12%
dotnet visual-studio asp nuget database-migrations asp-net-core asp-net-mvc asp-net-core-identity security security-hardening

securewebapp's Introduction

SecureWebApp

Security Rating Maintainability Rating Reliability Rating Quality Gate Status Bugs Vulnerabilities Lines of Code

Introduction

SecureWebApp - Secure Web Application Template for ASP.NET Core 5.0

A programming project for course COMP.SEC.300 Secure Programming, Spring 2021

The repository contains all the source code, architecture diagram and documentation for the project.

Documentation

Project Documentation available in Documentation.pdf in project root.

Direct link to the project documentation HERE.

Architecture

The rough architecture diagram of the application below:

Image not available!

Link to the full picture here.

Local development environment setup

  • Clone the repository
  • Install Visual Studio 2019 (Professional/Enterprise recommended)
  • Install required tools (ASP.NET Core Web development tools, MSSQL
  • Optionally, install Microsoft SQL Server 2019 separately
  • Open the project (solution file) SecureWebApp.sln in VS
  • Create the database and run the database migrations by running dotnet tool install --global dotnet-ef dotnet add package Microsoft.EntityFrameworkCore.Design dotnet ef migrations add InitialCreate dotnet ef database update
  • Build/Debug/Launch the project locally
  • Open in browser: http://localhost:5000 (INSECURE, NOT RECOMMENDED) or https://localhost:5001

Recommended tools and libraries for Windows development

  • Visual Studio 2019 Pro (all .NET 5.0 workloads)
  • ASP.NET Core 5.0 (MVC)
  • Microsoft SQL Server 2019 (LocalDB for testing available, integrated in Visual Studio)
  • Nuget Package Manager
  • Required nuget packages included in the project configs
  • Git Bash for Windows
  • Google Chrome / Mozilla Firefox

Continous Integration and Deployment

On pushes or Pull Requests to main branch, a build-test job is triggered to build the project in cloud runner and run all the unit tests and ensure they pass. After a successful test run, the deployment job is run to publish the in a private server.

The application is available for live testing in https://securewebapp.peltonet.com/

Static Analysis

The project source code is analyzed using SonarQube Cloud (SonarCloud) service.

SonarCloud is integrated through GitHub Actions.

The URL for the project analysis: https://sonarcloud.io/dashboard?id=Sinipelto_securewebapp

securewebapp's People

Contributors

sinipelto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

cleohari

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.