Giter Club home page Giter Club logo

starterkitforsymfony's Introduction

A Starter Kit For Symfony

Build Status Code Climate Code Climate License: MIT

This symfony project is about helping you get up and running symfony, quickly. Everything has been has been setup and coded so that all you should have to do is add your business logic. We've documented most of the projects so that if you need to change anything you should be able to without having to dig through a ton of code.

Things you will need before setting up.

  • Amazon s3:
    • secret
    • key
    • bucket name
    • region
  • Facebook Auth
    • secret
    • client id
  • Google Auth
    • secret
    • client id
  • You smtp server credentials

Setup Guide

  1. Install virtual box.
  2. Install vagrant.
  3. Read the homestead doc page
  4. Setup Homestead environment
  5. Now clone the repo for the starter kit
git clone https://github.com/phptuts/starterkitforsymfony.git
  1. Go into your Homestead.yml file and add a site to match where you cloned the repo. Mine looks like this.

    folders:
        - map: ~/vagrant/code
          to: /home/vagrant/Code
    
    sites:
        - map: bigfootlocator.app
          to: /home/vagrant/Code/Symfony/SymfonyStart/web
          type: symfony2
    
  2. Also add a database to your config

    databases:
        - homestead
        - skfsp
    
  3. vagrant up and then do a vagrant provision in the homestead folder.

  4. vagrant ssh to ssh into the vagrant box.

  5. cd into the directory where your project is

  6. create a jwt directory in your var folder

    mkdir var/jwt
    
  7. create your private key with and write down the pass phrase you used.

    openssl genrsa -out var/jwt/private.pem -aes256 4096
    
  8. create your public key, you will need the pass phrase here and in the composer install step

    openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem
    
  9. Run composer install

  10. Composer will ask for all the stuff you setup in the pre steps + jwt pass phrase & database info. Homestead root password stuff is below. You can always change this in the parameters.yml, fyi. here:

        app.database_user: homestead
        app.database_password: secret
        app.database_name: skfsp ## or whatever you named it in the config
    
  11. run migrations and this data fixtures script to load a default user.

       bin/console doctrine:migrations:migrate
       
       bin/console doctrine:fixtures:load --fixtures="./src/AppBundle/DataFixtures/ORM/LoadStartUserData.php"
    
  12. Delete the .git folder

        rm -rf .git
    

You should then have the website setup. The user to login is:

email: [email protected] / password: password

Then your done if you have any questions just ask!!! :)

Running Tests

This will run all the tests

    sh scripts/run_tests.sh

starterkitforsymfony's People

Contributors

phptuts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

starterkitforsymfony's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.