Installing Documenso with Postgresql Locally

Installing Documenso with Postgresql Locally

This tutorial goes through installing Documenso with Postgresql locally, you can find the complete and official docs here: https://github.com/documenso/documenso#local-development.

Requirements

This tutorial requires that you have Docker, Docker-Compose, and Node.js -v 18 or above. You can find tutorials for installing the dependencies on Ubuntu here:

Installing Docker on Ubuntu

Installing Docker Compose on Ubuntu

Installing node.js on Ubuntu with nvm

Clone the Github Repo

First off we need to clone the Github repo, you can fork the repository to your own account and clone from there or you can clone from the official repo via: 

							
							
					git clone https://github.com/documenso/documenso				
			

Once we have cloned the github repository navigate into the documenso dir via:

							
							
					cd documenso				
			

Setting the Env Variables

Next we will copy the .env.example file to .env, from there we can make any adjustments as needed to the documenso env variables and configuration. (Or just leave it set to the default env variables). 

							
							
					cp .env.example .env				
			

NPM Run DX

Next run the following command, this will create a postgresql database and mailserver in a docker container. 

							
							
					npm run dx				
			

Start in Dev Mode

We can then run Documenso in dev mode via: 

							
							
					npm run dev 				
			

Access Endpoints

You can now access Documenso at http://localhost:/3000, the mail server at http://localhost:/9000, the S3 storage dashboard at http://localhost:/9001, and for the database, just use your favorite database client to access the database at port #5432.

Walter Miely is a tech entrepreneur and CEO of Phoenix Ignited Tech You can find him on Linkedin. This material is licensed under the CC BY 4.0 License LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entireLegal Disclaimer here.