chore: Update navigation structure in documentation

This commit is contained in:
SebasKoedam
2024-05-08 12:32:54 +02:00
parent 65282cc57a
commit c777ca738e
9 changed files with 174 additions and 6 deletions

View File

@@ -23,6 +23,14 @@ nav:
- 🤖 Pepper:
- Pepper Setup: documentation/pepper/pepperSetup
- Pepper movement: documentation/android/robotmovement
- 👷‍♀️ Hardware:
- 📦 Hardware:
- Hardware: documentation/hardware/sensors
- 🍓 Raspberry Pi:
- Raspberry Pi: documentation/raspberryPi/raspberryPi
- NodeJs:
- NodeJs: documentation/raspberryPi/nodeJs
- NodeJs Setup: documentation/raspberryPi/nodeJsSetup
- MariaDB:
- MariaDB: documentation/raspberryPi/mariaDB
- MariaDB Setup: documentation/raspberryPi/mariaDBSetup

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

@@ -0,0 +1,3 @@
# MariaDB
MariaDB is a fork of MySQL and is a popular choice for database management systems. It is open-source and is widely used in web applications. MariaDB is a community-driven project and is developed by the original developers of MySQL. It is designed to be fully compatible with MySQL, meaning that it can be used as a drop-in replacement for MySQL.

View File

@@ -0,0 +1,68 @@
# MariaDB
MariaDB is a fork of MySQL and is a popular choice for database management systems. It is open-source and is widely used in web applications. MariaDB is a community-driven project and is developed by the original developers of MySQL. It is designed to be fully compatible with MySQL, meaning that it can be used as a drop-in replacement for MySQL.
In this guide, we will show you how to install MariaDB on your Raspberry Pi. This will allow you to create and manage databases on your device.
## Prerequisites
Before you begin, you will need the following:
- A Raspberry Pi with Raspbian installed
- Access to the terminal on your Raspberry Pi
## Step 1: Update the Package List
The first step is to update the package list on your Raspberry Pi. This will ensure that you have the latest information about available packages.
Run the following command to update the package list:
```bash
sudo apt update
```
## Step 2: Install MariaDB
Next, you will need to install the MariaDB server on your Raspberry Pi. You can do this by running the following command:
```bash
sudo apt install mariadb-server
```
During the installation process, you will be prompted to set a root password for the MariaDB server. Enter a secure password and remember it, as you will need it to access the database server.
## Step 3: Secure the MariaDB Installation
After installing MariaDB, you should secure the installation by running the `mysql_secure_installation` script. This script will guide you through the process of securing your MariaDB installation by setting a root password, removing anonymous users, disallowing remote root login, and removing the test database.
Run the following command to start the `mysql_secure_installation` script:
```bash
sudo mysql_secure_installation
```
Follow the prompts to secure your MariaDB installation.
## Step 4: Access the MariaDB Shell
Once you have secured the MariaDB installation, you can access the MariaDB shell by running the following command:
```bash
sudo mysql -u root -p
```
Enter the root password that you set during the installation process. You should now be logged into the MariaDB shell.
## Conclusion
You have successfully installed MariaDB on your Raspberry Pi. You can now create and manage databases using MariaDB on your device. If you have any questions or run into any issues, feel free to refer to the [MariaDB documentation](https://mariadb.com/kb/en/) for more information.
---

View File

@@ -0,0 +1,3 @@
# NodeJs
NodeJs is a JavaScript runtime that is built on Chrome's V8 JavaScript engine. It is designed to be lightweight and efficient, making it perfect for running on the Raspberry Pi. This is a file that

View File

@@ -0,0 +1,83 @@
# NodeJs Setup
https://pimylifeup.com/raspberry-pi-nodejs/
## Installation
1. Update the package list and install the dependencies by running the following commands:
```bash
sudo apt update
sudo apt install -y build-essential libssl-dev
```
2. Download the Node.js source code by running the following command:
```bash
wget https://nodejs.org/dist/v14.15.4/node-v14.15.4.tar.gz
```
3. Extract the Node.js source code by running the following command:
```bash
tar -xzf node-v14.15.4.tar.gz
```
4. Change to the extracted directory by running the following command:
```bash
cd node-v14.15.4
```
5. Configure the Node.js source code by running the following command:
```bash
./configure
```
6. Compile the Node.js source code by running the following command:
```bash
make -j4
```
7. Install the Node.js source code by running the following command:
```bash
sudo make install
```
8. Verify that Node.js has been installed by running the following command:
```bash
node -v
```
9. Verify that npm has been installed by running the following command:
```bash
npm -v
```
## Conclusion
You should now have Node.js installed on your Raspberry Pi. This installation will allow you to run JavaScript applications on your device.

View File

@@ -0,0 +1,3 @@
# Raspberry Pi Setup
To setup the Raspberry Pi, follow the guide in the this [link](https://knowledgebase.hbo-ict-hva.nl/1_beroepstaken/infrastructuur/realiseren/edge_computing/raspberry_pi/respberry_pi_installation/).

View File

@@ -158,19 +158,19 @@ Done
To do
- Mindmap project
- Issues for sprint 2
- Figma design for the app
Done
-
- Issues for sprint 2
**8 May**
To do
-
- Figma design for the app
- Setup the Pi
Done

View File

@@ -91,7 +91,7 @@ In de method `onRobotFocusGained` wordt een `Say` actie gemaakt en uitgevoerd. D
Encapsulation is een princiepe om de interne gegevens van een object te verbergen en alleen toegang te geven via methods.
Voorbeeld: Een bank heeft verschillende methods om geld te storten, geld op te nemen, saldo te controleren, enz. We kunnen niet rechtstreeks toegang krijgen tot de interne gegevens van de bank, zoals de balans, de rekeningnummers, enz. We moeten de methods van de bank gebruiken om deze gegevens te krijgen.
p
Use case:
```java