Paperless-ngx is a web-based document management system that allows users to capture and organize digital documents in a secure and efficient manner. In this tutorial, we will describe how to install Paperless-ngx on macOS.
Before you begin, make sure you have the following prerequisites:
Homebrew is a package manager that simplifies the installation of software on macOS. To install Homebrew, open the Terminal app and enter the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
This command will download and install Homebrew on your machine.
Python 3 and pip are required to run Paperless-ngx. To install these packages, run the following command in the Terminal:
brew install python3
This command will install Python 3 and pip on your machine.
Git is a version control system used to manage the source code of software. Paperless-ngx is hosted on GitHub, so you will need Git to clone the repository. To install Git, enter the following command in the Terminal:
brew install git
This command will install Git on your machine.
To clone the Paperless-ngx repository, navigate to the directory where you want to store the source code and enter the following command in the Terminal:
git clone https://github.com/paperless-ng/paperless.git
This command will clone the repository in the current directory.
Navigate to the directory where the Paperless-ngx source code was cloned and create a virtual environment using the following command:
cd paperless
python3 -m venv venv
Activate the virtual environment:
source venv/bin/activate
Install the dependencies using the following command:
pip install -r requirements.txt
This command will install all the libraries and dependencies required to run Paperless-ngx.
Paperless-ngx requires some basic configuration before it can be run. Set up the configuration file by running the following command:
cp contrib/env-sample .env
Edit the .env
file and set the following options:
DATABASE_URL
: The path to the database file (sqlite:////path/to/your/database/file
)SECRET_KEY
: A long, secure key for cryptographic operationsALLOWED_HOSTS
: A comma-separated list of allowed hostnames or IP addressesTo create the database and run the migrations, run the following command:
flask db upgrade
This command will create the database tables and populate them with the required data.
To start Paperless-ngx, navigate to the directory where the source code was cloned and activate the virtual environment:
cd paperless
source venv/bin/activate
Start the server using the following command:
./run.sh
This command will start the server and make Paperless-ngx available at http://localhost:8000/
.
In this tutorial, we described how to install Paperless-ngx on macOS. Paperless-ngx is a powerful tool that can help you manage your digital documents in a secure and efficient manner. With Paperless-ngx, you can easily store, organize, and retrieve your documents from anywhere.
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!