This program is being hosted at https://navigator.smuggr.xyz
Tested on Debian 12, you need to have GO (version 1.22.3) with all the dependencies from go.mod file installed and ready to use.
-
Install required packages:
sudo apt install -y wget tar nodejs npm
-
Download Go 1.22.3 tarball:
wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
-
Extract the tarball to /usr/local:
sudo tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz
-
Set up the Go environment variables (Bash): Add this to ~/.bashrc
export PATH=$PATH:/usr/local/go/bin
and then
source ~/.bashrc
-
Install postgresql:
sudo apt install -y postgresql postgresql-contrib
-
Switch to postgres user and create the database structure:
sudo -i -u postgres
psql
CREATE USER smuggr WITH PASSWORD '1234567890';
CREATE DATABASE net_work;
GRANT ALL PRIVILEGES ON DATABASE net_work TO smuggr;
psql -d net_work
GRANT ALL PRIVILEGES ON SCHEMA public TO smuggr; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO smuggr; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO smuggr; GRANT ALL PRIVILEGES ON ALL FUNCTIONS IN SCHEMA public TO smuggr;
\q exit sudo systemctl restart postgresql
-
Clone the repository to your local machine:
git clone https://github.com/smugg99/Tukan-Navigator.git
-
Navigate to the project directory:
cd Tukan-Navigator
-
Compile the whole project:
make
-
Run the backend and frontend:
make run
-
Open your web browser and visit
http://localhost:8000
(by default). -
Check help of the makefile:
make help
Toucan by Phil Laver from Noun Project (CC BY 3.0)