mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
52 lines
1.2 KiB
Markdown
52 lines
1.2 KiB
Markdown
#Funky Framadate API
|
|
Experimental REST backend in symfony 4 for Funky framadate frontend.
|
|
https://framagit.org/framasoft/framadate/funky-framadate-front
|
|
|
|
|
|
|
|
***
|
|
# Development
|
|
install dependencies with Composer
|
|
|
|
|
|
there are examples of request to make it all work.
|
|
## Getting started
|
|
### install the vendors
|
|
```bash
|
|
composer install
|
|
```
|
|
### initiate the database
|
|
```bash
|
|
php bin/console doctrine:schema:create
|
|
```
|
|
### launch local server with
|
|
```bash
|
|
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
|
|
* contact@cipherbliss.com
|
|
* https://mastodon.cipherbliss.com/@tykayn
|
|
* https://keybase.io/tykayn
|
|
* https://twitter.com/tykayn
|
|
* https://cipherbliss.com
|