Skip to content

Latest commit

 

History

History
84 lines (46 loc) · 2.77 KB

local-webserver-setup-method.md

File metadata and controls

84 lines (46 loc) · 2.77 KB

Local webserver method (aka the Painful way)

Requirements

  • A Meetup account (you'll need an API key)
  • You'll need A local running webserver. Projects that include a local webserver are for example WAMP or XAMPP.

Installation

Step 1: Fork the project

Go to our Github repository and click "Fork".

Step 2: Get the files from GIT

In a terminal, go to the folder you want to create the project in, and clone your fork:

git clone git@github.com:<username>/SweetLakePHP.git sweetlakephp

Or if your prefer HTTPS in stead of SSH:

git clone https://github.com/<username>/SweetLakePHP.git sweetlakephp

Replace <username> with your Github username.

Step 3: Get your API key from Meetup

Step 4: Create your config file

In the project 'app' folders you find a folder named 'config'. We must add a file called:

  • parameters_dev.yml

Simply copy the file parameters.yml.dist to parameters_dev.yml. Edit the file and make and following changes:

  • Line 5-8: db_credentials, enter the database credentials for your local db server.
  • Line 14: uncomment #mailer_delivery_address, and replace 'YOUR_EMAIL_ADDRESS_HERE' with your e-mail address.
  • Line 22: meetup_api_key, replace 'ADD_YOUR_MEETUP_API_KEY_HERE' with your API key.
  • Line 24-27: OPTIONAL add your twitter API key settings

Step 5: Install dependencies with composer

php composer.phar install

Be patient, this process takes some time, if you dont see any errors, then composer ran successfully.

Step 6: Make app/cache and app/logs writable for the webserver

Please read section Setting up Permissions under Configuration and Setup in The Book.

Step 7: Configure your webserver

How the webserver should be configured depends on which webserver you use.

Basic examples for Apache2 and Nginx can be found in Symfony 2's cookbook: Configuring a web server.

Step 8: Almost done (last step)

At this time you should be able to browse to your locally running project (http://localhost/ or whatever you configured in step 7).

The loading will take some time, but if you will see a very basic page (without styles) that means composer could not run the last steps.

We have to add the assets to the web folder. That is done with one command.

php app/console assets:install web --symlink
php app/console assetic:dump

Revisit your browser and see if the website is fully loaded.

Congratulations!

Go ahead and make some changes!