searx/_sources/dev/quickstart.rst.txt

56 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-12-30 18:31:17 +01:00
.. _devquickstart:
======================
Development Quickstart
======================
.. _npm: https://www.npmjs.com/
2019-12-30 18:31:17 +01:00
Searx loves developers, just clone and start hacking. All the rest is done for
you simply by using :ref:`make <makefile>`.
2019-12-30 18:31:17 +01:00
.. code:: sh
2020-09-30 10:35:05 +02:00
git clone https://github.com/searx/searx.git
2019-12-30 18:31:17 +01:00
Here is how a minimal workflow looks like:
2019-12-30 18:31:17 +01:00
1. *start* hacking
2. *run* your code: :ref:`make run`
3. *test* your code: :ref:`make test`
2019-12-30 18:31:17 +01: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.
2019-12-30 18:31:17 +01:00
If you implement themes, you will need to compile styles and JavaScript before
*run*.
2019-12-30 18:31:17 +01:00
.. code:: sh
make themes
2019-12-30 18:31:17 +01:00
Don't forget to install npm_ first.
2019-12-30 18:31:17 +01:00
.. tabs::
2019-12-30 18:31:17 +01:00
.. group-tab:: Ubuntu / debian
2019-12-30 18:31:17 +01:00
.. code:: sh
2019-12-30 18:31:17 +01:00
sudo -H apt-get install npm
2019-12-30 18:31:17 +01:00
.. group-tab:: Arch Linux
2019-12-30 18:31:17 +01:00
.. code-block:: sh
2019-12-30 18:31:17 +01:00
sudo -H pacman -S npm
2019-12-30 18:31:17 +01:00
.. group-tab:: Fedora / RHEL
2019-12-30 18:31:17 +01:00
.. code-block:: sh
2019-12-30 18:31:17 +01:00
sudo -H dnf install npm
2019-12-30 18:31:17 +01:00