Coder Social home page Coder Social logo

levinjoller / noteify Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 756 KB

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

License: GNU General Public License v3.0

Dockerfile 0.38% C# 83.98% HTML 13.97% CSS 1.46% JavaScript 0.22%
csharp clean-code clean-architecture repository-pattern asp-net-core-mvc code-reuse unitofwork-pattern unittest options-pattern docker

noteify's Introduction

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.

noteify's People

Contributors

levinjoller avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.