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.
- Symfony 3.1.*
- Doctrine
- FosUserBundle
- FosRestBundle ^2.1
- BraincraftedBootstrapBundle
- Angular 1.5
- Symfony 3.1 requirements
- pdo_sqlite
- Clone the repository and make sure
web/
dir is accessible by webserver. - Run
bin/update-dev
to run in dev mode orbin/install
to run in prod mode. - Create the database: Run
bin/console doctrine:schema:create
andbin/console doctrine:fixtures:load
- Make sure var/cache/, var/data/ and var/logs/ are writeable for the web server. If you use Ubuntu and have ACL enabled you can use the
bin/set-permissions
script.
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.