Skip to content
adherents-platform is the central plaftorm to manage the adherents of the political organization Parti de Gauche.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
features/bootstrap
src
web
.gitignore
Capfile
LICENSE
README.md
behat.yml
composer.json
composer.lock
docker-compose.yaml

README.md

API parti_gauche_adherents

Installation

First things first : clone the project

git clone git@github.com:LePartiDeGauche/adherents-platform.git

Run installation via composer. composer install

To run your symfony server

php app/console server:start

Now you can install your database and update the schema

php app/console doctrine:database:create && php app/console doctrine:schema:update --force

Generates JWT keys:

    mkdir -p app/var
    openssl genrsa -out app/var/jwt/private.pem -aes256 4096
    openssl rsa -pubout -in app/var/jwt/private.pem -out app/var/jwt/public.pem

Creating a test user

php app/console fos:user:create test test@les-tilleuls.coop test

You can now see a first interface of the api router on your local url : http://localhost:8000/doc

To make an api request, example to get the people data : http://localhost:8000/api/people

To load doctrine fixtures : php app/console doctrine:fixtures:load

To append doctrine fixtures : php app/console doctrine:fixtures:load --append

You can’t perform that action at this time.