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)
- Host: GitHub
- URL: https://github.com/vikbert/starwarsevents
- Owner: vikbert
- Created: 2015-09-21T12:45:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-16T21:23:17.000Z (over 10 years ago)
- Last Synced: 2025-06-24T20:49:08.978Z (9 months ago)
- Language: PHP
- Size: 126 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```