/
getting-started.txt
145 lines (77 loc) · 4.83 KB
/
getting-started.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
###############
Getting Started
###############
Introduction
============
Welcome to the **Arches Installation Guide**. This document is intended
to help you quickly get Arches running on your server.
What do I need to know to use this guide?
-----------------------------------------
Arches is designed to let you build semantically rich, geospatial applications. If you are a software developer, this document will help you understand how to use Arches to create your own custom applications. We expect that you are comfortable with python and javascript.
If you're not a software developer, you'll find useful information in this document such as how to install Arches and how to understand the graph model Arches uses to manage data.
Please note that you will need to install an Arches application to do any real work with Arches. You can visit http://www.archesproject.org to get a list of open source Arches applications.
It's important to recognize that Arches is designed to manage large, enterprise-scale datasets. The software is sophisticated and is designed to support extensive customization. This means that there are many ways to deploy Arches.
We've written this guide to streamline the installation of Arches Server in the most straight-forward manner possible. However, you can access the Arches source code at https://bitbucket.org/arches/arches3 if you wish to extend or contribute to the Arches project.
System Requirements
===================
To begin development on a basic installation of Arches, you will need the following:
**Disk Space**
* 1.5gb for all dependencies (Postgres/PostGIS, Python, GEOS, etc.)
* 300mb for all Arches code with a basic app installed (Arches-HIP, for example)
Ultimately, the amount of disk space you need will depend on the number of resources in your database.
**Memory (RAM)**
* 1gb in development, 4-16gb in production (primarily to support ElasticSearch)
Loading a .arches file uses RAM, and you may need to increase your RAM to successfully complete that process if you have a large number of resources.
Please note that Arches has been developed for modern browsers. It supports:
* Firefox
* Chrome
* Safari
* Opera
* Internet Explorer 10 or higher.
Dependencies
============
* PostgreSQL relational database (version 9.3)
* PostGIS (version 2.x) spatial module for PostgreSQL
* Python (version 2.7.6 - there seem to be issues with later versions of python)
* GEOS
These instructions will provide some guidance on installing
the required dependencies and getting Arches up and running quickly.
.. toctree::
:maxdepth: 1
installing-dependencies-linux
installing-dependencies-windows
Installing Arches
=================
For the installation process you will need **pip** installed on your system. If you don't already have it, you can find instructions to install it here: https://pip.pypa.io/en/latest/installing.html
If you have installed the dependencies, you're ready to install Arches.
#1. Create the Arches Project folder:
Create a folder called 'Projects' (or some other meaningful name) on your system.
#2. Install virtualenv:
Open a command prompt and type::
$ pip install virtualenv==1.11.4
virtualenv creates a directory with it's own installation of Python and Python executables.
#3. Create the ENV folder:
Navigate to your Projects directory (or wherever you named the root Arches folder) and create your virtual environment with the following command::
$ virtualenv ENV
#4. Install Arches:
Activate your virtual environment with the following command:
On Linux (and other POSIX systems)::
$ source ENV/bin/activate
On Windows::
\path to 'Projects'\ENV\Scripts\activate
You should see the name of your virtual environment in parentheses proceeding your command prompt like so ``(ENV)``::
(ENV)$
Install Arches (your virtual environment must be activated)::
(ENV)$ pip install arches==3.1.2
That's it, you're done. You should now have a folder structure that looks like this::
/Projects
/ENV
Arches Applications
==============================
Generally arches applications are installed in a folder directly under the Arches root folder. You can install as many Arches applications as you like, and they'll all use the same Arches framework and virtual environment. A typical Arches application installation will therefore look something like this::
/Projects
/ENV (virtual environment where the Arches frameowrk is installed)
/my_arches_app
/another_arches_app
**Note**
If you want to install an existing Arches application, such as the Heritage Inventory Package (HIP), you should stop here and go to: http://arches-hip.readthedocs.org/en/latest/getting-started/#installation.