mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
Compare commits
No commits in common. "2634228af00e162ea30a0fec0d7324913ab2581a" and "924f11412902061af13d88a01f98ebf3f9c4867f" have entirely different histories.
2634228af0
...
924f114129
22
README.md
22
README.md
@ -1,8 +1,11 @@
|
||||
#Funky Framadate API
|
||||
REST backend in symfony 5 for Funky framadate frontend.
|
||||
Experimental REST backend in symfony 5 for Funky framadate frontend.
|
||||
https://framagit.org/framasoft/framadate/funky-framadate-front
|
||||
|
||||
|
||||
Follow this guide to setup.
|
||||
* run `composer install`
|
||||
configure env by creating local env file
|
||||
`cp .env .env.local` and edit the file variables to give access to database.
|
||||
|
||||
## TODO:
|
||||
* coordinate properties and paths to be more restful.
|
||||
@ -11,7 +14,7 @@ return stack of votes when we want to get the configuration of one poll (see [do
|
||||
|
||||
***
|
||||
### Requirements
|
||||
You MUST have [php version 8+ (see installation doc)](doc/php-8-install.md) and [Composer](https://getcomposer.org/download/), and a database like Mysql, or postgresql, or mongodb, or any database that Doctrine can handle.
|
||||
You MUST have php version 8+ and [Composer](https://getcomposer.org/download/), and a database like Mysql, or postgresql, or mongodb, or any database that Doctrine can handle.
|
||||
Setup access to database by creating a .env.local file, and fill the database user and password data.
|
||||
you can check that the database connection works with the command:
|
||||
```bash
|
||||
@ -19,21 +22,11 @@ php bin/console doctrine:schema:validate
|
||||
```
|
||||
|
||||
## Getting started
|
||||
Follow this guide to setup.
|
||||
|
||||
# Development
|
||||
install dependencies with Composer
|
||||
|
||||
configure env by creating local env file
|
||||
```
|
||||
cp .env .env.local
|
||||
```
|
||||
and edit the file variables to give access to database.
|
||||
|
||||
Launch dev server with the "symfony" cli tool:
|
||||
```
|
||||
symfony serve
|
||||
```
|
||||
there are examples of request to make it all work in the [doc/examples.md](doc/examples.md).
|
||||
|
||||
### Check prerequisites
|
||||
@ -57,8 +50,7 @@ configure env by creating local env file
|
||||
|
||||
## TODO:
|
||||
* coordinate properties and paths to be more restful.
|
||||
https://stackoverflow.blog/2020/03/02/best-practices-for-rest-api-design/
|
||||
|
||||
|
||||
return stack of votes when we want to get the configuration of one poll (see [doc/examples.md](doc/examples.md))
|
||||
|
||||
***
|
||||
|
@ -8,7 +8,7 @@ server {
|
||||
try_files $uri /index.php$is_args$args;
|
||||
|
||||
# Use Mozilla's guidelines for SSL/TLS settings
|
||||
# https://mozilla.github.io/server-side-tls/ssl-config-generator/g
|
||||
# https://mozilla.github.io/server-side-tls/ssl-config-generator/
|
||||
# NOTE: some settings below might be redundant
|
||||
ssl_certificate /etc/letsencrypt/live/framadate-api.cipherbliss.com/fullchain.pem; # managed by Cert$
|
||||
ssl_certificate_key /etc/letsencrypt/live/framadate-api.cipherbliss.com/privkey.pem; # managed by Ce$
|
||||
|
@ -1,13 +0,0 @@
|
||||
# Installer PHP-8
|
||||
|
||||
D'abord il vous faut vous débarasser des versions précédentes de php (si vous ne lancez pas ce projet à partir de docker).
|
||||
```bash
|
||||
sudo apt purge php-common
|
||||
```
|
||||
|
||||
Pour Ubuntu / Debian, utilisez le ppa suivant. Mettez à jour Apt, puis installez php et hop, vous avez la version 8.
|
||||
```bash
|
||||
sudo add-apt-repository ppa:ondrej/php
|
||||
sudo apt install php8.0 php8.0-fpm php8.0-mysql php8.0-bcrypt nginx
|
||||
|
||||
```
|
@ -159,9 +159,6 @@
|
||||
"nikic/php-parser": {
|
||||
"version": "v4.10.4"
|
||||
},
|
||||
"php": {
|
||||
"version": "8.0"
|
||||
},
|
||||
"phpstan/phpdoc-parser": {
|
||||
"version": "0.4.14"
|
||||
},
|
||||
@ -302,6 +299,9 @@
|
||||
"symfony/options-resolver": {
|
||||
"version": "v5.2.4"
|
||||
},
|
||||
"symfony/orm-pack": {
|
||||
"version": "v2.1.0"
|
||||
},
|
||||
"symfony/polyfill-intl-grapheme": {
|
||||
"version": "v1.22.1"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user