Skip to content

xsuntel/symfony-scripts

Repository files navigation

Symfony Scripts

Abstract

This project includes some shell-scripts for Full-Stack developer to develop a web application using Symfony Framework

  • Web server
    • App : PHP
    • Cache : Redis
    • Database : PostgreSQL
    • Server : Nginx

Dev Environment

Platform

Linux

  • Work Directory
sudo mkdir -p /var/www
sudo mkdir -p /var/www/github
sudo chown -R "${LOGNAME}":"${LOGNAME}" /var/www/github
cd /var/www/github

MacOS

  • Work Directory
mkdir -p ~/Applications
mkdir -p ~/Applications/PhpStorm
mkdir -p ~/Applications/PhpStorm/github
~/Applications/PhpStorm/github

Windows

  • Work Directory
mkdir -p ~/Applications
mkdir -p ~/Applications/PhpStorm
mkdir -p ~/Applications/PhpStorm/github
~/Applications/PhpStorm/github

Project

Requirement

  1. Update your name for Git
git config --global user.email "you@examle.com"
git config --global user.name "Your Name"
git config --global init.defaultBranch main
git config --get  init.defaultBranch
git config --global credential.helper store
git config --global --list
  1. Download this project
git clone https://github.com/xsuntel/symfony-scripts.git symfony

cd symfony

find ./scripts/ -type f -name "*.sh" -exec chmod 775 {} \;
  1. Check the latest version of Symfony - Releases
vi ./env

# >>>> PHP
PHP_FRAMEWORK_VERSION=7.0.*
  1. Creating Symfony Applications - Installing & Setting up the Symfony Framework
./tutorial/symfony/create.sh

Deployment

Development

  • Check something in Dev Environment
./tools/ide/check.sh
  • Migrate databases in Dev Environment
./tools/ide/migrate.sh
  • Update some sources and Debugging it in Dev Environment
./tools/ide/update.sh

Prod Environment

Platform

Linux Server

  • Public Cloud
    • Amazon Web Services - Deployment
    • Google
    • Microsoft
    • Naver
  • Docker

App

    app/
        assets/
        bin/
        config/
        public/
        src/
        templates/
        translations/
        tests/
        var/
        vendor/
        .env
        composer.json
        package.json
    diagrams/
    scripts/
        base/
        cloud/
        docker/
        linux/
        macos/
        windows/
    tools/
        git/
        ide/
        webbrowser/
    tutorial/
        symfony/
    .env.base
    .env.dev
    .env.dev.local
    .env.prod
    .env.prod.local
    .gitignore
    .symfony.local.yaml
    LICENSE
    README.md

Tutorial

Reference

License

This is available under the MIT License.

About

This project includes some shell-scripts to develop a web application using Symfony Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages