Feature #1839
closedCollecting the Steps for Windows Setup
Description
The Reason¶
In the process of setting up OpenAtlas on Windows, we encountered some things that need to be done differently from Linux. Should we collect the steps, so that in case we do end up adding a Windows installation guide to the install.md at some point, we already have a base of which to build upon.
Created Documentation¶
See: Windows Installation
Collection of Important Steps (WIP)¶
Install PostgreSQL and PostGIS¶
The download link for the newest PostgreSQL Version Windows installer can be found on [[https://www.postgresql.org/download/windows/]] in the first line under "Download the installer".
Choose the appropriate version and use the installer to install all the needed tools (@Bernhard, I'd need to ask you here again what the steps would be + I'm unsure if you need to install PostGIS separately or if it is included in the installer).
Install ImageMagik¶
Download the newest version from [[https://imagemagick.org/script/download.php#windows]] and install it.
Important: Install the dll version, not the static one!
SetUp with PgAdmin4¶
- Set initial Password
- Set DB Password
- Set up Initial DB
- Creation:
- Right click on Databases then choose Create > Database
- Set name (openatlas)
- Set owner to openatlas
- Save
- Add extensions:
- Right click on created DB > Create > Extension..
- Select "postgis"
- Repeat with "unaccent"
- Creation:
- (optional) Import existing Dataset
Setup process for the tests¶
Installing the required packages:¶
Run the following commands:
- pip install coverage
and pip install nose
OR
Uncomment the lines following "# Used for testing" in "requirements.txt" then execute the following command:
- pip install -r requirements.txt
For testing run:nose2 --with-coverage --coverage tests/ --coverage openatlas/ --coverage-report html --pretty-assert --verbose