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
Permalink
Failed to load latest commit information.
agir fix l'édition de formulaire pour les rsvps Nov 15, 2018
.eslintrc.js
.gitignore
.travis.yml Update dependencies, remove requirements.txt, do some cleanup Oct 24, 2018
LICENSE
Pipfile
Pipfile.lock ajoute oauth2_provider Nov 9, 2018
README.md Vagrant n'écoute plus localhost + cleanup du README Nov 13, 2018
Vagrantfile Vagrant n'écoute plus localhost + cleanup du README Nov 13, 2018
manage.py
package-lock.json Petites modifs admin pour déprécation Django 2 + package-lock.json Nov 7, 2018
package.json
vagrant.sh
webpack.common.js js updates Sep 10, 2018
webpack.dev.js richEditor fonctionne en dev Nov 6, 2018
webpack.production.js

README.md

api-django

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/manage.py migrate # you will need to run this each time you migrate
pipenv run src/manage.py 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/manage.py createsuperperson