Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipsorst/example.symfony.angular-rest.php
This project demonstrates how to build a REST API with the Symfony Framework and how to run an AngularJS Application against it.
https://github.com/philipsorst/example.symfony.angular-rest.php
Last synced: about 1 month ago
JSON representation
This project demonstrates how to build a REST API with the Symfony Framework and how to run an AngularJS Application against it.
- Host: GitHub
- URL: https://github.com/philipsorst/example.symfony.angular-rest.php
- Owner: philipsorst
- License: apache-2.0
- Created: 2015-01-07T15:51:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-13T15:05:27.000Z (about 8 years ago)
- Last Synced: 2023-04-08T07:38:33.235Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 241 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
example.symfony.angular-rest.php
================================About
-----This project demonstrates how to build a REST API with the Symfony Framework and how to run an AngularJS Application against it.
If you like this project, please donate. Thank you.
[![Build Status](https://travis-ci.org/philipsorst/example.symfony.angular-rest.php.svg?branch=master)](https://travis-ci.org/philipsorst/example.symfony.angular-rest.php)
[![Coverage Status](https://coveralls.io/repos/github/philipsorst/example.symfony.angular-rest.php/badge.svg)](https://coveralls.io/github/philipsorst/example.symfony.angular-rest.php/)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=W9NAXW8YAZ4D6&item_name=example.symfony.angular-rest.php%20Donation¤cy_code=EUR)Technologies
------------* Symfony 3.1.*
* Doctrine
* FosUserBundle
* FosRestBundle ^2.1
* BraincraftedBootstrapBundle
* Angular 1.5Prerequisites
-------------* [Symfony 3.1 requirements](https://symfony.com/doc/3.1/reference/requirements.html)
* pdo_sqliteInstallation
------------* Clone the repository and make sure ```web/``` dir is accessible by webserver.
* Run ```bin/update-dev``` to run in dev mode or ```bin/install``` to run in prod mode.
* Create the database: Run ```bin/console doctrine:schema:create``` and ```bin/console doctrine:fixtures:load```
* [Make sure var/cache/, var/data/ and var/logs/ are writeable for the web server](https://symfony.com/doc/current/setup/file_permissions.html). If you use Ubuntu and have ACL enabled you can use the ```bin/set-permissions``` script.Domain
------The domain for this example is fairly simple, it is a simple blog system. Users can create blog posts and comment on blog posts. Users can only edit and delete their own blog posts and comments. The admin is able to perform every operation.
Further reading
---------------* [Symfony Cookbook: How to Authenticate Users with API Key](http://symfony.com/doc/current/cookbook/security/api_key_authentication.html)