mirror of
https://github.com/TheTaz25/denis.ergin.git
synced 2025-07-07 02:08:47 +00:00
feat(slides): Project Setup Slides
This commit is contained in:
parent
6cd482258e
commit
9821f46ff3
7 changed files with 123 additions and 0 deletions
15
src/components/slides/project-setup/docker.astro
Normal file
15
src/components/slides/project-setup/docker.astro
Normal file
|
@ -0,0 +1,15 @@
|
|||
<section>
|
||||
<section>
|
||||
<h2>Bereitstellung mittels Docker</h2>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<ul>
|
||||
<li>Mit Docker-Container ist man bereits sehr nah an "Produktion"</li>
|
||||
<li>Alle Assets werden in einen NginX-Container platziert</li>
|
||||
<li>Der Container kann dann "überall" deployed werden</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<!-- Verlinkung zu einem "Basic" Dockerfile -->
|
||||
</section>
|
15
src/components/slides/project-setup/index.astro
Normal file
15
src/components/slides/project-setup/index.astro
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
import TitleSlide from './title.astro'
|
||||
import WebBased from './web-apps.astro'
|
||||
import PythonHttp from './using-python.astro'
|
||||
import Docker from './docker.astro'
|
||||
import Npm from './npm.astro'
|
||||
---
|
||||
|
||||
<div class="slides">
|
||||
<TitleSlide />
|
||||
<WebBased />
|
||||
<PythonHttp />
|
||||
<Npm />
|
||||
<Docker />
|
||||
</div>
|
45
src/components/slides/project-setup/npm.astro
Normal file
45
src/components/slides/project-setup/npm.astro
Normal file
|
@ -0,0 +1,45 @@
|
|||
<section>
|
||||
<section>
|
||||
<h2>NodeJS + NPM</h2>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<p>
|
||||
NodeJS ist eine JavaScript-Runtime die auf vielen verschiedenen Platform Anwendung findet.
|
||||
<br><br>
|
||||
Im späteren Verlauf werden wir NodeJS auf jeden Fall verwenden. Deshalb lohnt es sich, die Runtime auf jeden Fall zu installieren.
|
||||
<br><br>
|
||||
NodeJS kommt mit dem Package Manager "NPM". Wir werden NPM für verschiedene Sachen verwenden.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3>Installation</h3>
|
||||
<p>
|
||||
Besuche die <a href="https://nodejs.org" target="_blank" rel="noopener noreferrer">NodeJS-Website</a> und lade dort das Program herunter.
|
||||
<br><br>
|
||||
Alternativ mit Choco, Brew, oder dem Linux-Package Manager eurer Wahl.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3>Setup von Web-Projekten mittels NPM</h3>
|
||||
<pre class="bash"><code data-trim data-line-numbers>
|
||||
User> # Projektordner erstellen
|
||||
User> mkdir mein-html-project && cd mein-html-project
|
||||
User> # Im Projektordner ein NPM-Projekt initialisieren
|
||||
User> npm init
|
||||
User> # Optional noch git initialisieren
|
||||
User> git init
|
||||
</code></pre>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<ul>
|
||||
<li>Für den Anfang wäre die Arbeit mit NodeJS "Overkill"</li>
|
||||
<li>Im späteren Verlauf werden wir uns aber mit dem Thema bundling beschäftigen</li>
|
||||
<li>Dafür werden wir einen Bundler Namens "Vite" verwenden</li>
|
||||
<li>Die Installation wird dann über NPM erfolgen</li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
3
src/components/slides/project-setup/title.astro
Normal file
3
src/components/slides/project-setup/title.astro
Normal file
|
@ -0,0 +1,3 @@
|
|||
<section>
|
||||
<h1>Web-Projekte aufsetzen</h1>
|
||||
</section>
|
20
src/components/slides/project-setup/using-python.astro
Normal file
20
src/components/slides/project-setup/using-python.astro
Normal file
|
@ -0,0 +1,20 @@
|
|||
<section>
|
||||
<section>
|
||||
<h2>Python Web-Server</h2>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<p>
|
||||
Für diejenigen, die bereits Python auf dem Laptop installiert haben.
|
||||
<br>
|
||||
Bietet eine schnelle und einfache Lösung, lokale HTML-Dateien auszuspielen.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<pre class="bash"><code data-trim data-line-numbers>
|
||||
User> cd <ordner-mit-html-dateien>
|
||||
User> python3 -m http.server
|
||||
</code></pre>
|
||||
</section>
|
||||
</section>
|
17
src/components/slides/project-setup/web-apps.astro
Normal file
17
src/components/slides/project-setup/web-apps.astro
Normal file
|
@ -0,0 +1,17 @@
|
|||
<section>
|
||||
<section>
|
||||
<h2>Webbasierte Lösungen</h2>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<p>Genug für den Anfang, sobald wir mit JavaScript arbeiten, sollten alternative Lösungen bevorzugt werden</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<ul style="list-style-type: none; margin: unset; padding: unset;">
|
||||
<li><a href="https://glitch.com" target="_blank" rel="noopener noreferrer">Glitch</a></li>
|
||||
<li><a href="https://codepen.io" target="_blank" rel="noopener noreferrer">Codepen</a></li>
|
||||
<li><a href="https://stackblitz.com" target="_blank" rel="noopener noreferrer">Stackblitz</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
8
src/pages/slides/setting-up-a-project.astro
Normal file
8
src/pages/slides/setting-up-a-project.astro
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
import Reveal from "../../layouts/Reveal.astro"
|
||||
import Slides from '../../components/slides/project-setup/index.astro'
|
||||
---
|
||||
|
||||
<Reveal title="How to set up a basic web project">
|
||||
<Slides />
|
||||
</Reveal>
|
Loading…
Add table
Add a link
Reference in a new issue