Skip to content

Schello805/pet-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pet-management

UNDER DEVELOPMENT

I searched but cannot find a solution to "maintain" my pets, especially the chickens. So I let build the software from ChatGPT. :-)

Bildschirmfoto 2024-06-29 um 08 02 12 Bildschirmfoto 2024-06-29 um 08 02 06

Install instructions at for exmample Ubuntu server 22.04

sudo apt update  
sudo apt install apache2 mariadb-server php php-mysql git

sudo mysql_secure_installation  
sudo systemctl start apache2  
sudo systemctl start mariadb  
sudo mysql -u root -p  

CREATE DATABASE haustierverwaltung;  
CREATE USER 'haustieruser'@'localhost' IDENTIFIED BY 'sicheres_passwort';  
GRANT ALL PRIVILEGES ON haustierverwaltung.* TO 'haustieruser'@'localhost';  
FLUSH PRIVILEGES;

Still in the mariadb executionwindow insert the table structur:

USE haustierverwaltung;

CREATE TABLE haustiere (
    id INT AUTO_INCREMENT PRIMARY KEY,
    name VARCHAR(255) NOT NULL,
    geburtsdatum DATE NOT NULL,
    geschlecht VARCHAR(10) NOT NULL,
    letzteImpfung DATE,
    letzteImpfungBeschreibung VARCHAR(255),
    naechsteImpfung DATE,
    naechsteImpfungBeschreibung VARCHAR(255),
    tierart VARCHAR(50) NOT NULL,
    rasse VARCHAR(255),
    foto VARCHAR(255)
);

CREATE TABLE dokumente (
    id INT AUTO_INCREMENT PRIMARY KEY,
    haustier_id INT,
    dokument_name VARCHAR(255) NOT NULL,
    FOREIGN KEY (haustier_id) REFERENCES haustiere(id)
);

CREATE TABLE benutzer (
    id INT AUTO_INCREMENT PRIMARY KEY,
    email VARCHAR(255) NOT NULL UNIQUE
);

CREATE TABLE benutzer (
    id INT AUTO_INCREMENT PRIMARY KEY,
    email VARCHAR(255) NOT NULL UNIQUE
);
cd /var/www/html
git clone https://github.com/Schello805/pet-management.git
nano /etc/apache2/sites-enabled/000-default.conf

change the DocumentRoot to

/var/www/html/pet-management 
service apache2 restart

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published