Anki: Unterschied zwischen den Versionen

Aus ahrensburg.city
Zur Navigation springen Zur Suche springen
// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
 
(12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
==Anki==
==Anki==
===Express.js===
==Installation und Starten==
Grundaufbau einer Express.js Anwendung und Installieren von Express.js
<pre>
npm init
npm install express
const express = require('express');
const app = express();
app.listen();
</pre>
===Django===
===Django===
Grundaufbau einer Django Anwendung und Installieren von Django
Grundaufbau einer Django Anwendung und Installieren von Django
Zeile 17: Zeile 9:
django-admin startproject Projekt
django-admin startproject Projekt
</pre>
</pre>
===asp net core===
====asp net core====
Grundaufbau einer asp net core Anwendung und Installieren von asp net core mvc
Grundaufbau einer asp net core Anwendung und Installieren von asp net core mvc
<pre>
<pre>
dotnet new mvc -au Individual -o Projekt
dotnet new mvc -au Individual -o Projekt
</pre>
===Django App erstellen===
<pre>
Erstellen einer Django App innerhalb eines Django Projekts namens App
{{c1::python manage.py startapp App}}
</pre>
== Spring Boot Controller erstellen in mvc==
<pre>
Erstellen eines Controllers in Spring Boot MVC namens Start.
Mit der URL /start und der Methode index wird das Template index.html ausgegeben.
{{c1::@Controller}}
{{c1::public class Start {}}
    {{c1::@GetMapping("/start")}}
    {{c1::public String index() {}}
        {{c1::return "index";}}
  {{c1::}}}
{{c1::}}}
</pre>
== views.py ==
<pre>
Funktion namens home erstellen und das Template home.html ohne Parameter in der Datei views.py in Django verwenden.
{{c1::def home(request):}}
    {{c1::return render(request,'home.html')}}
</pre>
== Asp net core Controller ==
<pre>
Erstellen eines Controllers in ASP.NET Core MVC namens StartController. Die Methode Index gibt das Template Index aus. 
{{c1::public class StartController : Controller}}
    {{c1::{ }}
        {{c1::public IActionResult Index()}}
        {{c1::{ }}
            {{c1::return View();}}
        {{c1::} }}
    {{c1::} }}
</pre>
</pre>

Aktuelle Version vom 21. Oktober 2024, 23:43 Uhr

Anki

Installation und Starten

Django

Grundaufbau einer Django Anwendung und Installieren von Django

python -m venv .venv
source .venv/bin/activate
pip install django
django-admin startproject Projekt

asp net core

Grundaufbau einer asp net core Anwendung und Installieren von asp net core mvc

dotnet new mvc -au Individual -o Projekt

Django App erstellen

Erstellen einer Django App innerhalb eines Django Projekts namens App
{{c1::python manage.py startapp App}}

Spring Boot Controller erstellen in mvc

Erstellen eines Controllers in Spring Boot MVC namens Start.
Mit der URL /start und der Methode index wird das Template index.html ausgegeben.

{{c1::@Controller}}
{{c1::public class Start {}}
    {{c1::@GetMapping("/start")}}
    {{c1::public String index() {}}
        {{c1::return "index";}}
   {{c1::}}}
{{c1::}}}

views.py

Funktion namens home erstellen und das Template home.html ohne Parameter in der Datei views.py in Django verwenden.
{{c1::def home(request):}}
    {{c1::return render(request,'home.html')}}

Asp net core Controller

Erstellen eines Controllers in ASP.NET Core MVC namens StartController. Die Methode Index gibt das Template Index aus.   
{{c1::public class StartController : Controller}}
    {{c1::{ }}
        {{c1::public IActionResult Index()}}
        {{c1::{ }}
            {{c1::return View();}}
        {{c1::} }}
    {{c1::} }}