GithubHelp home page GithubHelp logo

andreaslborg / p3 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.53 MB

https://moduler.aau.dk/course/2021-2022/DSNDATFB310

HTML 49.77% C# 47.87% CSS 1.17% JavaScript 1.19%
2021 aau admin-dashboard p3 software

p3's Introduction

👋🏻 Andreas Løvig Borg

🎓 Software BSc and Webdeveloper!

andreaslborg's GitHub stats Top Langs

p3's People

Contributors

andreaslborg avatar dolmer1 avatar emiliesonne avatar jhbengtsson avatar lasse2507a avatar lugialukas avatar mariusgardshodn avatar

Stargazers

 avatar

Watchers

 avatar

p3's Issues

Implement TestLicenseWithData

I thought it would be nice to have a set of test data, so I created a class for that. It should be initialized with a set of information boards, categories and posts in the constructor, so that it can be used in the UI to test how it works/looks with correct bindings.

  • Implement class (?)
  • Implement 'Initialize' method to be called in constructor, that adds hardcoded info boards, categories and posts

final functionality management pages

  • add post,
  • edit category,
  • edit information board
  • delete post
  • delete category
    • vi foreslår at der laves en ny modal til dette (så der er en til post, og en til category)

Product owner and admin frontend

Branch: issue-52

Product owner

Modals

  • Help
  • Profile
  • Edit license
  • Edit admins
  • See statistic

Other functions

  • Add a working dropdown
  • Functional log out

Admin

Modals

  • Help
  • Profile
  • Edit post
  • Add post
  • New category
  • Edit categories
  • Edit information board
  • QR code
  • See statistic
  • Delete confirmation

Other functions

  • Add a working dropdown
  • Change category in the navigation bar
  • Change information board on the table
  • Functional log out

Code structure

  • Choose MVC/MVVM - or maybe none of them?
  • Create all files and folders
  • Add function classes - now or when needed?
  • Add function classes to services (see blazor server notes for instructions, or watch video about dependency injection)
  • Delete unnecessary files from template

Implement model classes

  • Administrator
  • Category
  • (Editor - maybe first later, as this is not high priority)
  • InformationBoard
  • License
  • Post

Set up html for pages and components in UI

Set up the needed html (use hard coded properties in the @code part when needed) for the following files. I named the different components of the MainPage "XX-Overview", and they represent the three main components of the page, i.e. the list of information boards in the left side, the list of posts to the right, and the list of categories in the top. When writing the html for the main page, the different overviews should be inputted to the html as html elements.

  • CategoryOverview
  • InformationBoardOverview
  • PostOverview
  • Index
  • Admin
  • Product owner

Database setup

  • Hvilken database (MySQl, MS SQL server, PostgreSQl..)?
  • Hvilken database skal vi bruge (udbyder)?
  • Hvad skal vi bruge til at kommunikere med databasen?
  • Hvordan skal databasens indhold struktureres?

Tilføj viewmodels

Tilføj viewmodels i functions-mappen:

  • LicenseViewModel
  • InformationBoardViewModel
  • CategoryViewModel
  • PostViewModel

Alle viewmodels skal indeholde et model-objekt samt en liste til det underliggende niveau (L -> IB, IB -> C, C -> P) og en metode der henter de objekter, der skal ind på listen.
Derudover skal funktionerne, som skal bruges på UI'en laves her.
I koden på pagesne skal viewmodel-metoderne "wrappes" i metoder/kald, som der skal bindes til på knapperne i UI'en.
License-viewmodel'en skal tilføjes til admin/owner pages med dependency injection

Find virksomhed

  • Kontakt virksomheder
  • Afhold møde med 1-2 virksomheder
  • Udvælg samarbejdspartner

Set up authentication/authorization system

Use App Service

Inspiration:
https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization?toc=%2Faspnet%2Fcore%2Ftoc.json&bc=%2Faspnet%2Fcore%2Fbreadcrumb%2Ftoc.json&view=aspnetcore-6.0
https://youtu.be/ntmV9nj4N2Y
https://youtu.be/m1aWGR2uKGg
https://techcommunity.microsoft.com/t5/apps-on-azure/azure-app-service-authentication-8211-app-roles/ba-p/392361

  • Kunderne skal kunne oprette sig på en måde, så de får de rigtige roles (fx admin) - kan det være sådan at de får et link til oprettelse?
  • De skal ligeledes have det rigtige 'tag' i forhold til hvilken licens, de hører til
  • hvert link skal fx kun kunne bruges én gang (af hensyn til noget sikkerhed sådan da)

Emilies ønskeseddel

Lav generic method til at hente models i DbService

  • Den skal også tilføjes til interfacet
  • DbService skal kun kaldes fra viewmodels'ne

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.