2016-04-21 11:15:04 +00:00
|
|
|
.. _devquickstart:
|
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
======================
|
2016-02-01 20:28:13 +00:00
|
|
|
Development Quickstart
|
2019-12-12 18:20:56 +00:00
|
|
|
======================
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. _npm: https://www.npmjs.com/
|
2019-12-18 15:11:05 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
Searx loves developers, just clone and start hacking. All the rest is done for
|
|
|
|
you simply by using :ref:`make <makefile>`.
|
2016-02-01 20:28:13 +00:00
|
|
|
|
|
|
|
.. code:: sh
|
|
|
|
|
2020-09-28 14:44:14 +00:00
|
|
|
git clone https://github.com/searx/searx.git
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
Here is how a minimal workflow looks like:
|
2019-12-12 18:20:56 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
1. *start* hacking
|
|
|
|
2. *run* your code: :ref:`make run`
|
|
|
|
3. *test* your code: :ref:`make test`
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
If you think at some point something fails, go back to *start*. Otherwise,
|
|
|
|
choose a meaningful commit message and we are happy to receive your pull
|
|
|
|
request. To not end in *wild west* we have some directives, please pay attention
|
|
|
|
to our ":ref:`how to contribute`" guideline.
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
If you implement themes, you will need to compile styles and JavaScript before
|
|
|
|
*run*.
|
2016-02-01 20:28:13 +00:00
|
|
|
|
|
|
|
.. code:: sh
|
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
make themes
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
Don't forget to install npm_ first.
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. tabs::
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. group-tab:: Ubuntu / debian
|
2016-02-01 20:28:13 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. code:: sh
|
2016-04-21 11:15:04 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
sudo -H apt-get install npm
|
2016-04-21 11:15:04 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. group-tab:: Arch Linux
|
2019-12-12 18:20:56 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. code-block:: sh
|
2019-12-18 15:11:05 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
sudo -H pacman -S npm
|
2019-12-18 15:11:05 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. group-tab:: Fedora / RHEL
|
2019-12-12 18:20:56 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
.. code-block:: sh
|
2019-12-18 15:11:05 +00:00
|
|
|
|
2020-12-12 19:31:49 +00:00
|
|
|
sudo -H dnf install npm
|
2019-12-18 15:11:05 +00:00
|
|
|
|