Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/virginiegodfrin/01-restfull-api

tuto : https://symfonycasts.com/screencast/symfony-rest/post
https://github.com/virginiegodfrin/01-restfull-api

symfony symfony2

Last synced: about 1 month ago
JSON representation

tuto : https://symfonycasts.com/screencast/symfony-rest/post

Awesome Lists containing this project

README

        

# RESTing with Symfony

Well hi there! This repository holds the code for the *whole* Symfony
REST tutorial series on KnpUniversity:

* [Episode 1](http://knpuniversity.com/screencast/symfony-rest)
* [Episode 2](http://knpuniversity.com/screencast/symfony-rest2)
* [Episode 3](http://knpuniversity.com/screencast/symfony-rest3)
* [Episode 4](http://knpuniversity.com/screencast/symfony-rest4)
* [Episode 5](http://knpuniversity.com/screencast/symfony-rest5)

## Setup the Project

Ok, cool - this will be easy!

1. Make sure you have [Composer installed](https://getcomposer.org/).

2. Install the composer dependencies:

```bash
composer install
```

Or you may need to run `php composer.phar install` - depending on *how*
you installed Composer. This will probably ask you some questions
about your database (answer for your system) and other settings
(just hit enter for these).

3. Load up your database

Make sure `app/config/parameters.yml` is correct for your database
credentials. Then:

```bash
php app/console doctrine:database:create
php app/console doctrine:schema:update --force
php app/console doctrine:fixtures:load
```

4. Start up the built-in PHP web server:

```bash
php app/console server:run
```

Then find the site at http://localhost:8000.

You can login with:

user: weaverryan
pass: foo

Have fun!