Commit 51102477 authored by Archerfou's avatar Archerfou

Add informations about development setup

parent 4adcced7
Pipeline #957 passed with stage
in 9 minutes
...@@ -6,8 +6,8 @@ Local development tutorial ...@@ -6,8 +6,8 @@ Local development tutorial
decisions. decisions.
This tutorial drives through a local installation of the project for This tutorial drives through a local installation of the project for
development on Linux. It requires git, a fairly recent version of python2 and development on Linux. It requires git, a fairly recent version of python2,
virtualenv. virtualenv and PostgreSQL.
Quickstart Quickstart
========== ==========
...@@ -19,13 +19,19 @@ that's how you will learn most. ...@@ -19,13 +19,19 @@ that's how you will learn most.
Here's how to try it:: Here's how to try it::
$ git clone https://git.laquadrature.net/memopol/memopol.git $ git clone gitlab@git.laquadrature.net:memopol/memopol.git
$ cd memopol $ cd memopol
$ source bin/quickstart.sh $ source bin/quickstart.sh
If you want more control or if it doesn't work for you, then follow the steps If you want more control or if it doesn't work for you, then follow the steps
below or have a look at what the quickstart script does. below or have a look at what the quickstart script does.
.. note::
If you are using python 3 on your system, the quickstart script will install
the virtualenv with this version. You'll need to remove the directory
'memopol_env' and recreate it with the python version 2.7 in parameter
'virtualenv -p /usr/bin/python2.7 memopol_env'
Make a virtual environment Make a virtual environment
========================== ==========================
...@@ -52,17 +58,18 @@ Alternatively, use the tox command:: ...@@ -52,17 +58,18 @@ Alternatively, use the tox command::
Clone the repository Clone the repository
==================== ====================
You should fork the project on git laquadrature.net and use the fork's clone url. For the The project is hosted on https://git.laquadrature.net/memopol/memopol
sake of the demo, we'll use the main repository URL::
You can get the code with git ::
$ git clone https://git.laquadrature.net/memopol/memopol.git $ git clone https://git.laquadrature.net/memopol/memopol
Cloning into 'memopol'... Clonage dans 'memopol'...
remote: Counting objects: 2516, done. remote: Counting objects: 7972, done.
remote: Compressing objects: 100% (109/109), done. remote: Compressing objects: 100% (2668/2668), done.
remote: Total 2516 (delta 44), reused 0 (delta 0), pack-reused 2402 remote: Total 7972 (delta 5203), reused 7830 (delta 5099)
Receiving objects: 100% (2516/2516), 4.40 MiB | 79.00 KiB/s, done. Réception d'objets: 100% (7972/7972), 4.88 MiB | 4.73 MiB/s, fait.
Resolving deltas: 100% (1103/1103), done. Résolution des deltas: 100% (5203/5203), fait.
Checking connectivity... done. Vérification de la connectivité... fait.
$ cd memopol/ $ cd memopol/
...@@ -160,6 +167,10 @@ You can load a small data sample for quick setup: ...@@ -160,6 +167,10 @@ You can load a small data sample for quick setup:
$ memopol loaddata small_sample.json $ memopol loaddata small_sample.json
If you launch memopol for the first time, you need to launch this command :
$ memopol refresh_scores
Or actual data (takes a while):: Or actual data (takes a while)::
$ bin/update_all $ bin/update_all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment