An open API service indexing awesome lists of open source software.

https://github.com/yoannfleurydev/contacts-web-service

Simple Web Service to manage contacts
https://github.com/yoannfleurydev/contacts-web-service

api contacts php symfony web-services

Last synced: 2 months ago
JSON representation

Simple Web Service to manage contacts

Awesome Lists containing this project

README

        

# Contacts

[![Build Status](https://travis-ci.org/yoannfleurydev/contacts-web-service.svg?branch=master)](https://travis-ci.org/yoannfleurydev/contacts-web-service)

POC using Symfony project.

## Configuration

* Enable `php_fileinfo` extension in your `php.ini`.
* Setup your Database connector in `app/config/config.yml`
* Execute `composer intall`
* Generate the SSH keys :

```bash
mkdir -p var/jwt # For Symfony3+, no need of the -p option
openssl genrsa -out var/jwt/private.pem -aes256 4096
openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem
```

* Create Database `php bin/console doctrine:database:create`
* Create Tables `php bin/console doctrine:schema:update --force`
* Load DataFixtures if needed : `php bin/console doctrine:fixtures:load`
* Launch server : `php bin/console server:run`

## Tests

Just write your tests and run `./vendor/bin/simple-phpunit`. It is a wrapper provided
by Symfony.

You can also run

```bash
vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml.dist tests
```

## Authors

* Yoann Fleury
* Georges Buquet