How to Install OpenWISP on macOS
Prerequisites
- macOS installed
- Python 3.x installed
- pip installed
- virtualenv installed
Steps
- Install OpenWISP via pip by running the following command:
sudo pip install openwisp
- Create a new virtual environment for OpenWISP by running the following command:
virtualenv openwisp
- Activate the virtual environment by running the following command:
source openwisp/bin/activate
- Run the following command to install the dependencies required for OpenWISP:
pip install -r https://raw.githubusercontent.com/openwisp/openwisp/master/requirements.txt
- Install PostgreSQL by running the following command:
brew install postgresql
- 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
- Set the necessary environment variables by running the following command:
export OPENWISP_DATABASE_URL=postgresql://openwisp:openwisp@localhost/openwisp
- Initialize the database by running the following command:
python -m openwisp_network_topology.init_db
- 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.