Installing flow8 from source
Api installation
Prerequisites:
Before starting, ensure the following requirements are met:
- Go installed and Go environment variables is configured:
Make sure you have Go installed on your system. You can download it from Go installation.
wget https://go.dev/dl/go{{go_version}}.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go{{go_version}}.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/binVerify installation by running:
go versionIt should display the installed version of Go.
- Git Installed:
Ensure git is installed. Verify with:
git --version- ImageMagick v7 installed and configured. See ImageMagick installation
Installation Steps:
Clone the Repository
Clone the source code of flow8 from its repository using Git.
git clone https://git.qix.sx/adentro/flow8.gitNavigate into the project directory:
cd flow8Create a .env File with environment variables.
Read more about in Environment variables section
Install packages
go mod tidyBuild the Application
Run the go build command to compile the source code. This generates an executable binary:
go build -o server server.goBy default, the binary will be named server (or server.exe on Windows).
Run the Application
To verify the installation, run the application:
./serverApp installation
Prerequisites:
Before starting, ensure the following requirements are met:
- Node.js version 18 or above is installed. See Node.js install
You can check it with:
node -v- Npm is installed.
You can check it with:
npm -v- Git Installed:
Ensure git is installed. Verify with:
git --versionInstallation steps:
Get source code
Clone repository:
git clone https://git.qix.sx/adentro/flow8-ui.gitAnd navigate to app folder:
cd flow8-uiDefine environment variables in .env file
Read more about in Environment variables section
Install dependencies
npm installRun application
For development:
npm run devFor production:
npm run buildStatic files distenation is ./dist directory, replace it to webserver root directory
Nginx configuration as example:
server { listen 80; listen [::]:80; server_name localhost;
location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri /index.html; }
error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; }}