Commit c2d51544 authored by Julien SADAOUI's avatar Julien SADAOUI
Browse files

feat: install instructions

parent b0cbdee0
# Installation des postes pour le coding dojo
## Exécuter le script d'installation
Exécuter les commandes suivantes :
```shell
chmod +x install.sh
sudo ./install.sh
```
## Exécuter le build gradle
Exécuter les commandes suivantes :
```shell
cd /home/reactive-programming/coding-dojo/reactive-programming/
./gradlew
```
## Lancement d'Intellij
Lancer l'application ***Reactive Programming***, suivent les réponses aux différentes boîtes de dialogue :
- Do not import settings >> OK
- JetBrains Privacy Policy >> scroller jusqu'en bas >> Accept
- Don't send
- Skip Remaining And Set Defaults
- Attendre la fin des tâches d'initialisation, visible dans la barre d'état en bas d'Intellij
- Configurez l'annotation processor
- Menu File >> Settings
- Build, Execution, Deployment >> Compiler >> Annotation Processors
- Cliquez sur "Enable Annotation Processing"
- Fermer Intellij
#!/bin/sh
# Upgrade Ubuntu
apt-get update -y
apt-get upgrade -y
# Add user
useradd reactive-programming -d /home/reactive-programming -m -p '$1$pDsNUusO$JBT295xEqE7m13afm7XZ91'
su - reactive-programming -c "mkdir coding-dojo"
# Add to sudoers
adduser reactive-programming sudo
# Install Git
apt-get install -y git
# Install Java 11
apt-get install -y openjdk-11-jdk
# Install zsh
apt-get install -y zsh
# CODING DOJO
mkdir install_tools
cd install_tools
# Install IntelliJ
wget https://download.jetbrains.com/idea/ideaIC-2018.3.1.tar.gz
tar -xzvf ideaIC-2018.3.1.tar.gz -C /opt
# Clone project
su - reactive-programming -c "cd coding-dojo && git clone https://gitlab.ippon.fr/coding-dojo/reactive-programming.git"
cat > /usr/share/applications/intellij.desktop <<EOF
[Desktop Entry]
Type=Application
Terminal=false
Name=Intellij
Icon=/opt/idea-IC-183.4588.61/bin/idea.png
Exec=/opt/idea-IC-183.4588.61/bin/idea.sh
EOF
cat > /usr/share/applications/reactive-programming.desktop <<EOF
[Desktop Entry]
Type=Application
Terminal=false
Name=Reactive Programming
Icon=/opt/idea-IC-183.4588.61/bin/idea.png
Exec=/opt/idea-IC-183.4588.61/bin/idea.sh coding-dojo/reactive-programming
EOF
cat > /home/reactive-programming/Bureau/rxjava-docs.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=RxJava Docs
Type=Link
URL=http://reactivex.io/documentation
Icon=text-html
EOF
cat > /home/reactive-programming/Bureau/reactor-core-docs.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Reactor Core Docs
Type=Link
URL=https://projectreactor.io/docs/core/release/reference/
Icon=text-html
EOF
cat > /home/reactive-programming/Bureau/reactor-test-docs.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Reactor Test Docs
Type=Link
URL=https://projectreactor.io/docs/core/release/reference/index.html#testing
Icon=text-html
EOF
cat > /home/reactive-programming/Bureau/spring-web-reactive.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Spring WebFlux
Type=Link
URL=https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html
Icon=text-html
EOF
cat > /home/reactive-programming/Desktop/rxjava-docs.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=RxJava Docs
Type=Link
URL=http://reactivex.io/documentation
Icon=text-html
EOF
cat > /home/reactive-programming/Desktop/reactor-core-docs.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Reactor Core Docs
Type=Link
URL=https://projectreactor.io/docs/core/release/reference/
Icon=text-html
EOF
cat > /home/reactive-programming/Desktop/reactor-test-docs.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Reactor Test Docs
Type=Link
URL=https://projectreactor.io/docs/core/release/reference/index.html#testing
Icon=text-html
EOF
cat > /home/reactive-programming/Desktop/spring-web-reactive.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Spring WebFlux
Type=Link
URL=https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html
Icon=text-html
EOF
# Maj & reboot
apt-get upgrade && reboot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment