Framadate v2 API backend en symfony. dépot miroir
Go to file
Baptiste Lemoine 945e677d49 update modeling of entities with stack 2019-11-27 11:26:21 +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
public Add initial set of files 2019-10-24 13:06:51 +02:00
src update modeling of entities with stack 2019-11-27 11:26:21 +01:00
.env 🎉 init all in symfony 4 2019-10-25 14:13:11 +02:00
.gitignore basic conf for endpoints and local webserver to run 2019-11-05 12:16:16 +01:00
README.md 📖 doc to add crontab job 2019-11-20 11:32:38 +01:00
composer.json can create poll 2019-11-06 12:27:46 +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.


Dev

install dependencies with Composer

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

initiate the database

php bin/console doctrine:schema:create

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

contact@cipherbliss.com https://mastodon.cipherbliss.com/@tykayn https://keybase.io/tykayn https://twitter.com/tykayn https://cipherbliss.com