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

https://github.com/vikbert/starwarsevents

symfony2 demo project (knp)
https://github.com/vikbert/starwarsevents

Last synced: 7 months ago
JSON representation

symfony2 demo project (knp)

Awesome Lists containing this project

README

          

Startwars Events with sf2
================================

This is a demo project for getting start with symfony 2.

## Setup on Mac OS X
NO apache2 required, we will used the internal PHP native web server provided by sf2.
To start the project, we need:

- install vendors via composer
- install MySQL on Mac
- config database for current project
- start web server and test

### instal vendors
```
composer install
```

### install mysql server on mac OS X
```
brew install mysql
```
Updated the password of `root` user, if you are not able to login with `root`
```
$(brew --prefix mysql)/bin/mysqladmin -u root password my_new_password
```

### config database for current project
```
cd app/config/
cp parameters.yml.dist parameters.yml
```

Enter the correct database config data in `parameters.yml`

## Setup database
### Create database `symfony`
```
php app/console doctrine:database:create
```

### create all tables according to created entity classes
```
php app/console doctrine:schema:create
```

## Load the test Data: `users` and` `events`
```
php app/console doctrine:fixtures:load
```
> login data: vikbert@pass

## start web server
```
php app/console server:run
```