Add Node.JS.md

This commit is contained in:
Johan 2022-06-14 15:58:20 +02:00
parent 33afaa5102
commit be82874ee3
3 changed files with 86 additions and 69 deletions

72
Gitea.md Normal file
View File

@ -0,0 +1,72 @@
# Gitea
## Användning
### Generera SSH-nycklar
<code>ssh-keygen -t RSA -b 4096 -C "user@domain.se"</code>
## Installation
### Config cheat sheet
https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
### Aktivera inbyggd SSH-server
<pre><code>[server]
START_SSH_SERVER = true
SSH_LISTEN_PORT = %(SSH_PORT)s
</code></pre>
### HTTPS proxy via Apache
<pre><code>[server]
ROOT_URL = https://git.myspace.nu/
</code></pre>
### Sätt repositories default till private
<pre><code>[repository]
DEFAULT_PRIVATE = private
</code></pre>
### Deaktivera signup & openid
<pre><code>[service]
DISABLE_REGISTRATION = true
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
</code></pre>
### Kör som Windows service
<pre><code>[server]
<strike># echo %COMPUTERNAME% => USER-PC => RUN_USER = USER-PC$</strike>
<strike>RUN_USER = COMPUTERNAME$</strike>
# Använd git för att SSH-länkar till repositoryt ska presenteras rätt
RUN_USER = git
</code></pre>
<code>sc.exe create gitea start= auto binPath= "\"E:\Gitea\gitea.exe\" web --config \"E:\Gitea\custom\conf\app.ini\""</code>
### Uppdatera Gitea
Ladda ned den senaste versionen från https://dl.gitea.io/gitea/ till installationskatalogen och döp om den till gitea.exe Starta sedan om tjänsten.
<code>net stop gitea && get start gitea</code>
https://docs.gitea.io/en-us/upgrade-from-gitea/
### Avinstallera Windows service
<code>sc.exe delete gitea</code>
### Redigera mallar
* https://github.com/go-gitea/gitea/tree/main/templates (mallar)
* https://gitea.com/gitea/awesome-gitea#themes (teman)
* https://yourbasic.org/golang/format-parse-string-time-date-example/ (datumformat)
* https://docs.gitea.io/en-us/cmd-embedded/ (extrahera mallar och filer)

10
Node.JS.md Normal file
View File

@ -0,0 +1,10 @@
# Node.JS
### [Installera NVM](https://github.com/nvm-sh/nvm "Node Version Manager")
<pre><code>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && source ~/.bashrc</code></pre>
### Installera Node.JS version
<pre><code>nvm install 16.13 && nvm use 16.13</code></pre>

View File

@ -1,72 +1,7 @@
# Gitea
# Developer Documentation
## Användning
## [Gitea](Gitea.md)
### Generera SSH-nycklar
## [Git cheat sheet](Git%20cheat%20sheet.md)
<code>ssh-keygen -t RSA -b 4096 -C "user@domain.se"</code>
## Installation
### Config cheat sheet
https://docs.gitea.io/en-us/config-cheat-sheet/#server-server
### Aktivera inbyggd SSH-server
<pre><code>[server]
START_SSH_SERVER = true
SSH_LISTEN_PORT = %(SSH_PORT)s
</code></pre>
### HTTPS proxy via Apache
<pre><code>[server]
ROOT_URL = https://git.myspace.nu/
</code></pre>
### Sätt repositories default till private
<pre><code>[repository]
DEFAULT_PRIVATE = private
</code></pre>
### Deaktivera signup & openid
<pre><code>[service]
DISABLE_REGISTRATION = true
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
</code></pre>
### Kör som Windows service
<pre><code>[server]
<strike># echo %COMPUTERNAME% => USER-PC => RUN_USER = USER-PC$</strike>
<strike>RUN_USER = COMPUTERNAME$</strike>
# Använd git för att SSH-länkar till repositoryt ska presenteras rätt
RUN_USER = git
</code></pre>
<code>sc.exe create gitea start= auto binPath= "\"E:\Gitea\gitea.exe\" web --config \"E:\Gitea\custom\conf\app.ini\""</code>
### Uppdatera Gitea
Ladda ned den senaste versionen från https://dl.gitea.io/gitea/ till installationskatalogen och döp om den till gitea.exe Starta sedan om tjänsten.
<code>net stop gitea && get start gitea</code>
https://docs.gitea.io/en-us/upgrade-from-gitea/
### Avinstallera Windows service
<code>sc.exe delete gitea</code>
### Redigera mallar
* https://github.com/go-gitea/gitea/tree/main/templates (mallar)
* https://gitea.com/gitea/awesome-gitea#themes (teman)
* https://yourbasic.org/golang/format-parse-string-time-date-example/ (datumformat)
* https://docs.gitea.io/en-us/cmd-embedded/ (extrahera mallar och filer)
## [Node.JS](Node.JS.md)