Organizing website of La France insoumise.
Clone or download
guilro fix l'édition de formulaire pour les rsvps
ça bugguait parce que je partait du principe
qu'il y avait qu'une submission en base alors qu'on
en crée une nouvelle à chaque fois qu'on attend un paiement
Latest commit 59b2762 Nov 15, 2018
Failed to load latest commit information.
agir fix l'édition de formulaire pour les rsvps Nov 15, 2018
.travis.yml Update dependencies, remove requirements.txt, do some cleanup Oct 24, 2018
Pipfile.lock ajoute oauth2_provider Nov 9, 2018 Vagrant n'écoute plus localhost + cleanup du README Nov 13, 2018
Vagrantfile Vagrant n'écoute plus localhost + cleanup du README Nov 13, 2018
package-lock.json Petites modifs admin pour déprécation Django 2 + package-lock.json Nov 7, 2018
webpack.common.js js updates Sep 10, 2018 richEditor fonctionne en dev Nov 6, 2018


Build Status

  1. Vagrant installation
  2. Usage : public endpoints
    1. /events
    2. /groups
    3. Resources filters
  3. Usage: frontend pages

Vagrant installation

You can use Vagrant to create a virtual machine running the project out of the box. You need to have Vagrant and VirtualBox installed on your computer.

If this is not already installed, install vagrant-hostmanager plugin :

$ vagrant plugin install vagrant-hostmanager

Then just launch the box :

$ vagrant up

This installs PostgreSQL, Redis and Node onto the virtual machine, and launch three more systemd services :

  • django which is the development server of this project
  • MailHog, a catch-all SMTP server used for development
  • webpack, the webpack dev server with hot reloading

You can access Django from http://agir.local:8000 and Mailhog from http://agir.local:8025. Webpack dev server listens on port 3000.

You need to run a few commands in the VM to get things running :

vagrant ssh
cd /vagrant
pipenv run src/ migrate # you will need to run this each time you migrate
pipenv run src/ load_fake_data # to create base users

The /vagrant directory in the box is syncrhonized with your project directory on the host.

Create super user

pipenv run src/ createsuperperson