quickstart.html 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Development Quickstart &mdash; searx 0.8.0 documentation</title>
  7. <link rel="stylesheet" href="../_static/style.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.8.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../_static/doctools.js"></script>
  21. <link rel="top" title="searx 0.8.0 documentation" href="../index.html" />
  22. <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  23. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  24. </head>
  25. <body role="document">
  26. <div class="document">
  27. <div class="documentwrapper">
  28. <div class="bodywrapper">
  29. <div class="body" role="main">
  30. <div class="section" id="development-quickstart">
  31. <h1>Development Quickstart<a class="headerlink" href="#development-quickstart" title="Permalink to this headline">¶</a></h1>
  32. <p>This quickstart guide gets your environment set up with searx. Furthermore, it gives a
  33. short introduction to the new manage.sh script.</p>
  34. <div class="section" id="how-to-setup-your-development-environment">
  35. <h2>How to setup your development environment<a class="headerlink" href="#how-to-setup-your-development-environment" title="Permalink to this headline">¶</a></h2>
  36. <p>First, clone the source code of searx to the desired folder. In this case the source
  37. is cloned to ~/myprojects/searx. Then create and activate the searx-ve
  38. virtualenv and install the required packages using manage.sh.</p>
  39. <div class="code sh highlight-python"><div class="highlight"><pre>cd ~/myprojects
  40. git clone https://github.com/asciimoo/searx.git
  41. cd searx
  42. virtualenv searx-ve
  43. . ./searx-ve/bin/activate
  44. ./manage.sh update_dev_packages
  45. </pre></div>
  46. </div>
  47. </div>
  48. <div class="section" id="how-to-run-tests">
  49. <h2>How to run tests<a class="headerlink" href="#how-to-run-tests" title="Permalink to this headline">¶</a></h2>
  50. <p>Tests can be run using the manage.sh script.</p>
  51. <p>Following tests and checks are available:</p>
  52. <ul class="simple">
  53. <li>Unit tests</li>
  54. <li>Selenium tests</li>
  55. <li>PEP8 validation</li>
  56. <li>Unit test coverage check</li>
  57. </ul>
  58. <p>For example unit tests are run with the command below:</p>
  59. <div class="code sh highlight-python"><div class="highlight"><pre>./manage.sh unit_tests
  60. </pre></div>
  61. </div>
  62. <p>For further test options, please consult the help of the manage.sh script.</p>
  63. </div>
  64. <div class="section" id="how-to-compile-styles-and-javascript">
  65. <h2>How to compile styles and javascript<a class="headerlink" href="#how-to-compile-styles-and-javascript" title="Permalink to this headline">¶</a></h2>
  66. <div class="section" id="how-to-build-styles">
  67. <h3>How to build styles<a class="headerlink" href="#how-to-build-styles" title="Permalink to this headline">¶</a></h3>
  68. <p>Less is required to build the styles of searx. Less can be installed using either NodeJS or Apt.</p>
  69. <div class="code sh highlight-python"><div class="highlight"><pre>sudo apt-get install nodejs
  70. sudo npm install -g less
  71. </pre></div>
  72. </div>
  73. <p>OR</p>
  74. <div class="code sh highlight-python"><div class="highlight"><pre>sudo apt-get install node-less
  75. </pre></div>
  76. </div>
  77. <p>After satisfying the requirements styles can be build using manage.sh</p>
  78. <div class="code sh highlight-python"><div class="highlight"><pre>./manage.sh styles
  79. </pre></div>
  80. </div>
  81. </div>
  82. <div class="section" id="how-to-build-the-source-of-the-oscar-theme">
  83. <h3>How to build the source of the oscar theme<a class="headerlink" href="#how-to-build-the-source-of-the-oscar-theme" title="Permalink to this headline">¶</a></h3>
  84. <p>Grunt must be installed in order to build the javascript sources. It depends on NodeJS, so first
  85. Node has to be installed.</p>
  86. <div class="code sh highlight-python"><div class="highlight"><pre>sudo apt-get install nodejs
  87. sudo npm install -g grunt-cli
  88. </pre></div>
  89. </div>
  90. <p>After installing grunt, the files can be built using the following command:</p>
  91. <div class="code sh highlight-python"><div class="highlight"><pre>./manage.sh build_grunt
  92. </pre></div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  101. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  102. <h1>Searx</h1>
  103. <ul>
  104. <li><a href="../index.html">Home</a></li>
  105. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  106. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  107. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  108. </ul>
  109. <hr />
  110. <ul>
  111. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  112. <li><a href="https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software">Flattr</a></li>
  113. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  114. </ul>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="clearer"></div>
  119. </div>
  120. <div class="footer">
  121. &copy; Copyright 2015, Adam Tauber.
  122. </div>
  123. </body>
  124. </html>