Framadate v2 API backend en symfony. dépot miroir
Go to file
Baptiste Lemoine 3800818fdc Merge branch 'master' of https://framagit.org/tykayn/date-poll-api 2019-12-11 11:43:46 +01:00
bin Add initial set of files 2019-10-24 13:06:51 +02:00
config can create poll 2019-11-06 12:27:46 +01:00
doc 📖 doc folder 2019-11-28 17:12:38 +01:00
public Add initial set of files 2019-10-24 13:06:51 +02:00
src ugly way to retrieve poll properties because of jsmserializer config not working as expected 2019-12-01 15:36:31 +01:00
.env hop 2019-11-29 10:38:43 +01:00
.env.production 📖 doc 2019-12-11 11:38:21 +01:00
.gitignore update ignore 2019-12-11 11:31:52 +01:00
README.md 📖 doc folder 2019-11-28 17:12:38 +01:00
composer.json continue newVoteStackAction 2019-11-27 21:46:35 +01:00
composer.lock can create poll 2019-11-06 12:27:46 +01:00
symfony.lock can create poll 2019-11-06 12:27:46 +01:00

README.md

#Funky Framadate API Experimental REST backend in symfony 4 for Funky framadate frontend. https://framagit.org/framasoft/framadate/funky-framadate-front

TODO:

return stack of votes when we want to get the configuration of one poll (see doc/examples.md)


Development

install dependencies with Composer

there are examples of request to make it all work.

Getting started

install the vendors

composer install

initiate the database with fixtures

php bin/console doctrine:schema:drop --force
php bin/console doctrine:schema:create
php bin/console doctrine:fixtures:load --no-interaction

launch local server with

php bin/console server:run

Production

set a virtual host on your server, configure CORS access to have the API to work. configure database access in a .env.local file , replace variables DATABASE_URL=mysql://database_user:db_user_password@127.0.0.1:3306/database_name this file is not versionned

cronjob to delete expired polls

add this line in your crontab to run the clearance of expired polls everyday at 0h00.

0 0 * * * wget http://MYWEBSITE/api/v1/clean-polls 

you can open your crontabl in command line with :

crontab -e

About

made by B. Lemoine, aka Tykayn, for the framadate funky front end project, a polling libre software.

contacts