printer-manager-admin/README.md

133 lines
6 KiB
Markdown
Raw Permalink Normal View History

2023-11-01 21:27:44 +00:00
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
<p align="center">
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>
## About Laravel
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
Laravel is accessible, powerful, and provides tools required for large, robust applications.
## Learning Laravel
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
## Laravel Sponsors
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
### Premium Partners
- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[Many](https://www.many.co.uk)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- **[DevSquad](https://devsquad.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
- **[OP.GG](https://op.gg)**
- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)**
- **[Lendio](https://lendio.com)**
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
## Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
2023-11-02 16:20:57 +00:00
# Linux Install
## Debian 11
2023-11-02 16:28:37 +00:00
2023-11-02 16:36:02 +00:00
Install guide for debian 11
2023-11-02 16:28:37 +00:00
### Pre Reqs
#### Install Composer
2023-11-02 16:36:02 +00:00
* https://www.digitalocean.com/community/tutorials/how-to-install-composer-on-debian-11-quickstart (only do after install PHP 8.2 if that is not done see the commands in the install commands section)
2023-11-02 16:28:37 +00:00
### Install Commands
2023-11-02 16:29:03 +00:00
```
2023-11-02 16:20:57 +00:00
sudo apt update
2023-11-02 17:12:24 +00:00
apt-get install apache2 curl git unzip mariadb-server -y
2023-11-02 16:20:57 +00:00
sudo apt install lsb-release apt-transport-https ca-certificates software-properties-common -y
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt update
sudo apt install php8.2 -y
php -v
2023-11-02 17:12:24 +00:00
sudo apt install libapache2-mod-php8.2 php8.2-mbstring php8.2-curl php8.2-gd php8.2-intl php8.2-odbc php8.2-mysql php8.2-pdo-sqlite php8.2-xml
2023-11-02 16:20:57 +00:00
sudo systemctl restart apache2
2023-11-02 16:28:37 +00:00
cd /var/www/html/
2023-11-02 16:36:02 +00:00
git clone git@code.techinc.nl:techinc/printer-manager-admin.git
chown -R www-data:www-data printer-manager-admin/
printer-manager-admin
2023-11-02 16:28:37 +00:00
cd printer-manager-admin
2023-11-02 17:12:24 +00:00
composer install
2023-11-02 17:25:53 +00:00
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE printer_manager_admin;
CREATE USER 'printer-manager-admin'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON printer_manager_admin.* TO 'printer-manager-admin'@'localhost';
FLUSH PRIVILEGES;
exit;
2023-11-02 17:12:24 +00:00
cp .env.example .env
2023-11-02 17:46:14 +00:00
```
2023-11-02 17:25:53 +00:00
vim .env (edit the db config)
2023-11-02 17:46:14 +00:00
```
2023-11-02 17:12:24 +00:00
php artisan key:generate
php artisan migrate
php artisan make:filament-user
2023-11-02 17:46:14 +00:00
```
```
2023-11-02 17:25:53 +00:00
vim /etc/apache2/sites-enabled/000-default.conf (set DocumentRoot /var/www/html/printer-manager-admin/public)
2023-11-02 17:46:14 +00:00
vim /etc/apache2/apache2.conf
```
add the following:
```
2023-11-02 17:25:53 +00:00
<Directory /var/www/html/printer-manager-admin/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
2023-11-02 17:46:14 +00:00
```
2023-11-02 17:25:53 +00:00
Then Run:
2023-11-02 17:46:14 +00:00
```
2023-11-02 17:25:53 +00:00
a2en enable rewrite
systemctl restart apache2
2023-11-02 16:21:36 +00:00
```
2023-11-02 17:46:14 +00:00
You are good to go!
2023-11-02 16:20:57 +00:00