Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
src
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 

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

About

adherents-platform is the central plaftorm to manage the adherents of the political organization Parti de Gauche.

Resources

License

Releases

No releases published

Packages

No packages published

Languages