How to Install OpenWISP on macOS

Prerequisites

Steps

  1. Install OpenWISP via pip by running the following command:
sudo pip install openwisp
  1. Create a new virtual environment for OpenWISP by running the following command:
virtualenv openwisp
  1. Activate the virtual environment by running the following command:
source openwisp/bin/activate
  1. Run the following command to install the dependencies required for OpenWISP:
pip install -r https://raw.githubusercontent.com/openwisp/openwisp/master/requirements.txt
  1. Install PostgreSQL by running the following command:
brew install postgresql
  1. Create a new PostgreSQL user and database by running the following command:
psql postgres
create user openwisp with password 'openwisp';
create database openwisp owner openwisp;
\q
  1. Set the necessary environment variables by running the following command:
export OPENWISP_DATABASE_URL=postgresql://openwisp:openwisp@localhost/openwisp
  1. Initialize the database by running the following command:
python -m openwisp_network_topology.init_db
  1. Start the OpenWISP server by running the following command:
python -m openwisp_network_topology.runserver

Congratulations! You have successfully installed OpenWISP on your macOS device.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!