7This quickstart guide gets your environment set up with searx. Furthermore, it
8gives a short introduction to the ``manage.sh`` script.
10How to setup your development environment
11=========================================
13First, clone the source code of searx to the desired folder. In this case the
14source is cloned to ``~/myprojects/searx``. Then create and activate the
15searx-ve virtualenv and install the required packages using manage.sh.
20 git clone https://github.com/asciimoo/searx.git
23 . ./searx-ve/bin/activate
24 ./manage.sh update_dev_packages
30Tests can be run using the ``manage.sh`` script. Following tests and checks are
36- Unit test coverage check
38For example unit tests are run with the command below:
42 ./manage.sh unit_tests
44For further test options, please consult the help of the ``manage.sh`` script.
47How to compile styles and javascript
48====================================
50.. _less: http://lesscss.org/
51.. _NodeJS: https://nodejs.org
56Less_ is required to build the styles of searx. Less_ can be installed using
61 sudo -H apt-get install nodejs
62 sudo -H npm install -g less
68 sudo -H apt-get install node-less
70After satisfying the requirements styles can be build using ``manage.sh``
77How to build the source of the oscar theme
78==========================================
80.. _grunt: https://gruntjs.com/
82Grunt_ must be installed in order to build the javascript sources. It depends on
83NodeJS, so first Node has to be installed.
87 sudo -H apt-get install nodejs
88 sudo -H npm install -g grunt-cli
90After installing grunt, the files can be built using the following command:
94 ./manage.sh grunt_build
97Tips for debugging/development
98==============================
101 Whether you are working on a new engine or trying to eliminate a bug, it is
102 always a good idea to turn on debug logging. When debug logging is enabled a
103 stack trace appears, instead of the cryptic ``Internal Server Error``
104 message. It can be turned on by setting ``debug: False`` to ``debug: True`` in
105 :origin:`settings.yml <searx/settings.yml>`.
107Run ``./manage.sh tests`` before creating a PR.
108 Failing build on Travis is common because of PEP8 checks. So a new commit
109 must be created containing these format fixes. This phase can be skipped if
110 ``./manage.sh tests`` is run locally before creating a PR.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list