Groceri.es is a self-hosted online grocery shopping platform that allows you to create and manage your grocery store online. This tutorial aims to guide you through the installation process of Groceri.es on Fedora CoreOS latest version.
Before you begin the installation process, ensure that you have the following:
The first step is to clone the Groceri.es repository from Github. To do this, ssh into your Fedora CoreOS instance and run the following command:
git clone https://github.com/grocerycrud/groceri.es.git
This will clone the repository into your home directory.
Now that you have cloned the repository, the next step is to configure the environment variables. Navigate to the cloned repository directory and edit the file .env.prod
using your preferred editor.
Replace the placeholder values with your desired values as shown below:
POSTGRES_DB=groceries
POSTGRES_USER=postgres
POSTGRES_PASSWORD=<your_postgres_password>
DJANGO_SECRET_KEY=<your_django_secret_key>
ADMIN_EMAIL=<your_admin_email>
ADMIN_PASSWORD=<your_admin_password>
DOMAIN_NAME=<your_domain_name>
Save the changes made to the file and exit.
Next, build the Docker containers using the command:
docker-compose -f production.yml build
Once the containers are built, start the containers with the command:
docker-compose -f production.yml up -d
Wait for the containers to start running.
The next step is to create a superuser. Run the following command to enter the Django container:
docker-compose -f production.yml exec web bash
Once inside the container, run the command:
python manage.py createsuperuser
Enter the required details such as username, email address, and password, and then exit the container.
Finally, you can access the Groceri.es web application by visiting the domain name you configured earlier in step 2 in your web browser.
Groceri.es is now installed on your Fedora CoreOS instance. You can now start using it to create and manage your online grocery store.
We hope that this tutorial was helpful. If you have any questions or challenges, feel free to leave them in the comments section below.
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!