Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.
/ Noteify Public archive

C# web application built with ASP.NET Core 5.0.1, Microsoft account external login. A simple note app.

License

Notifications You must be signed in to change notification settings

levinjoller/Noteify

Repository files navigation

Noteify

CI only master Deploy master

12.11.2020; BBZW-Sursee.
This project was created as part of the technical school. The sensitive files have been removed in this new repository.

Live demo

https://m150noteify.herokuapp.com

Build with

  • Visual Studio Code
  • ASP.NET Core 5.1
  • ASP.NET Core Identity (Claim-based)
  • PostgreSQL
  • Microsoft OAuth 2.0 authorization (Over Azure)
  • Docker (For CD)
  • Heroku (Cloud Application Plattform; host)
  • XUnit (Unit Tests)

Installation

Install the latest .Net SDK
Install the latest PostgreSQL server

The following commands must be executed on the /src/Noteify.Web/ directory.

Postgres SQL DB

Add personal PostgreSQL connection informations

dotnet user-secrets set "DbUserId" "YourDbUserName"
dotnet user-secrets set "DbPassword" "YourDbPassword"

Microsoft OAuth 2.0

dotnet user-secrets set "Authentication:Microsoft:ClientId" "YourClient-ID"
dotnet user-secrets set "Authentication:Microsoft:ClientSecret" "YourClient-Secret"

Usage

Navigate to the start project:

cd .\src\Noteify.Web\

Execute project:

dotnet run

Call up the application on:
https://localhost:5001
or
http://localhost:5000

Deployment

The following environment variables must be set on the corresponding Heroku account:

MICROSOFT_OAUTH_CLIENTID
MICROSOFT_OAUTH_CLIENTSECRET
DATABASE_URL

The preferred time zone:

TZ

For Microsoft OAuth 2.0, the corresponding URI of the website must be stored.

To consider

The same Microsoft OAuth 2.0 account cannot be used for local and production authentication. In this exercise, the URI in the same Azure account was changed depending on the usage. I recommend two Azure accounts (one for local and one for production) for extended use, so that the production environment continues to work even when used locally.

Licence

This project is licensed under the GNU License - see the LICENSE.md file for details.

Author

Levin Joller

DEPRECATED

This project is no longer in development. It fulfilled its purpose as an exercise.