How to Install Groceri.es on Debian Latest

Introduction

Groceri.es is an open-source software that allows you to manage your grocery list with ease. It's a web-based software that you can access from any device with internet access. This tutorial will guide you through the process of installing Groceri.es on Debian latest.

Prerequisites

Before you start the installation process, make sure that you have the following:

Step 1 – Clone Github Repository

The first step is to clone the Groceri.es repository from Github. Open your terminal and navigate to the directory where you want to install Groceri.es:

cd /var/www/html

Next, run the following command to clone the repository:

sudo git clone https://github.com/jstnryan/groceri.es.git

This will create a new directory called groceri.es in /var/www/html.

Step 2 – Install Dependencies

Next, navigate to the groceri.es directory and install the dependencies using Composer. If you haven't installed Composer yet, you can follow this tutorial to install it:

cd groceri.es
sudo composer install

Step 3 – Configure Apache

Create a new virtual host file for Groceri.es. Run the following command to create a new file with the name groceri.es.conf in /etc/apache2/sites-available/ directory:

sudo nano /etc/apache2/sites-available/groceri.es.conf

Add the following configuration to the file:

<VirtualHost *:80>
    ServerName your-domain.com
    DocumentRoot /var/www/html/groceri.es/public
    
    <Directory /var/www/html/groceri.es>
        AllowOverride All
    </Directory>
    
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Replace your-domain.com with your domain name. Save and close the file.

Next, enable the virtual host file and disable the default one:

sudo a2ensite groceri.es.conf
sudo a2dissite 000-default.conf

Restart the Apache server for the changes to take effect:

sudo systemctl restart apache2

Step 4 – Configure Database

You need to configure the database for Groceri.es. If you haven't installed MySQL yet, you can follow this tutorial to install it:

Log in to the MySQL server:

mysql -u root -p

Create a new database and user for Groceri.es:

CREATE DATABASE groceri_es;
CREATE USER 'groceriuser'@'localhost' IDENTIFIED BY 'your-password';
GRANT ALL PRIVILEGES ON groceri_es.* TO 'groceriuser'@'localhost';
FLUSH PRIVILEGES;

Replace your-password with your desired password.

Update the .env file with the database configuration:

cp .env.example .env
nano .env

Update the following lines with your database details:

DB_DATABASE=groceri_es
DB_USERNAME=groceriuser
DB_PASSWORD=your-password

Step 5 – Run Migrations

Next, run the database migrations:

sudo php artisan migrate

Step 6 – Configure Storage

Create a new storage link:

sudo php artisan storage:link

Set the correct file permissions:

sudo chown -R www-data:www-data /var/www/html/groceri.es/storage
sudo chown -R www-data:www-data /var/www/html/groceri.es/bootstrap/cache

Step 7 – Access Groceri.es

Now that everything is configured, you can access Groceri.es through your web browser by visiting http://your-domain.com.

You should see the login page. You can create a new account or login with one of the pre-created accounts:

Conclusion

In this tutorial, you learned how to install Groceri.es on Debian latest. You can now start managing your grocery list with ease using this powerful web-based software.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!