Getting Started
Prerequisites
To start using Easy Docs, some items are necessary:
Prerequisites:
Compatible Linux operating system:
- Debian, Ubuntu, RedHat, CentOS, Fedora, Suse, Amazon Linux, Oracle Linux
- Superuser access or sudo permissions.
- Basic knowledge of the Linux command line.
- Git installed on your system.
- (To create templates) Node.js and npm installed on your system.
Steps to Get Started:
Installing Git (using apt)
If you are using a Debian or Ubuntu-based system, or derivatives, you can install Git using the command:
$ sudo apt update
$ sudo apt install gitInstalling Git (using yum)
If you are using a RedHat, CentOS, Amazon Linux-based system, or derivatives, you can install Git using the command:
$ sudo yum update
$ sudo yum install gitInstalling Node (using NVM)
To install Node.js and npm, you can use NVM (Node Version Manager). To install NVM, run the following command:
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bashAfter installing NVM, you can install Node.js and npm by running the following command:
$ nvm install NODE_VERSIONReplace NODE_VERSION with the version of Node.js you want to install. For example, to install version 18, you can run the following command:
$ nvm install 18Clone the Project
First, you need to clone the easy-docs repository to your system. You can do this by running the following command in your terminal:
$ git clone https://github.com/db1group/easy-docsAfter cloning the repository, navigate to the directory:
$ cd easy-docsStarting in Development Mode
To run the project in development mode, you can execute the following command:
npm run devor
yarn devIn development mode, we will need to install some dependencies in our environment.
Installing Dependencies
To install the project dependencies, you can run the following command:
export WKTHMLTOPDF_ARCH=$(case "$(arch)" in "aarch64" | "arm64") echo "arm64" ;; *) echo "amd64" ;; esac)export WKTHMLTOPDF_URL=$(echo "https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_$WKTHMLTOPDF_ARCH.deb")sudo apt updatesudo apt install -y libfontenc1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utilscurl -L $WKTHMLTOPDF_URL > /tmp/wkhtmltopdf.debdpkg -i /tmp/wkhtmltopdf.debsudo apt --fix-broken install -ysudo apt install wkhtmltopdfImportant
These dependencies are only necessary in development mode, but you can use Docker to run the project without needing to install these dependencies.
In production mode, these dependencies are not necessary, as the project runs in a Docker container that already has these dependencies installed.
