How to Install TeamMapper on Manjaro
TeamMapper is an open-source project used for real-time mapping and location tracking of team members in a given area. In this tutorial, we will guide you through the installation process for TeamMapper on your Manjaro system.
Prerequisites
Before proceeding, ensure that the following requirements are met:
- A Manjaro system running on your local machine
- Git installed on your system
- Basic knowledge of the Linux command line
Steps to Install TeamMapper
Follow the steps below to install TeamMapper on your Manjaro system:
Open the terminal on your Manjaro system by pressing
Ctrl+Alt+Ton your keyboard.Clone the TeamMapper repository from Github by running the following command:
git clone https://github.com/b310-digital/teammapper.gitAfter cloning the repository, navigate to the teammapper directory using the
cdcommand:cd teammapper/Install the required dependencies by running the following command:
sudo apt-get install libssl-dev libffi-dev python-dev python3-venv python3-dev python3-pip libpq-dev postgresql postgresql-contribCreate a python virtual environment using the following command:
python3 -m venv envActivate the virtual environment using the following command:
source env/bin/activateInstall the required packages using the following command:
pip install -r requirements.txtCreate a PostgreSQL database and database user by running the following commands:
sudo -u postgres psqlThis opens a PostgreSQL shell.
CREATE DATABASE teammapper; CREATE USER teammapperuser WITH PASSWORD 'teammapperpassword'; GRANT ALL PRIVILEGES ON DATABASE teammapper TO teammapperuser; \qUpdate the database settings by modifying the
settings.pyfile located in theteammapper/directory:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'teammapper', 'USER': 'teammapperuser', 'PASSWORD': 'teammapperpassword', 'HOST': 'localhost', 'PORT': '5432', } }Run the following command to apply migrations and create the necessary tables in the database:
python manage.py migrateFinally, run the TeamMapper server using the following command:
python manage.py runserverOpen a web browser and navigate to
http://localhost:8000/to access the TeamMapper dashboard.
Congratulations! You have successfully installed TeamMapper on your Manjaro system.