silently / silex-twittos-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Silex Twittos App

What is it? A minimal back-end twitter-like implementation developed with Silex.

What for? Intended to experiment developing SPA applications.

Done with: Silex 1.3 with DoctrineOrmServiceProvider version 1.

Instructions

Create a config/settings.yml file from the config/settings.default.yml one and enter the valid configuration parameters in your setup.

Then install dependencies with

composer install

Then launch server with

php -S localhost:8080 -t web/api web/index.php

Or

bin/server

Launch console with

php bin/console

For API developers

Regarding people:

  • in the database: author refers to the person who writes the text a tweet. A tweet and its retweets have the same author
  • in the database: publisher refers to the person who emits the tweet. In case of a retweet, it is a different person from the author. In case of an original tweet, the publisher and the author are the same person
  • in JSON API responses: there is a unique user term which maps the publisher one

About


Languages

Language:PHP 69.2%Language:HTML 30.8%