Skip to content

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

License

Notifications You must be signed in to change notification settings

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

  • App : PHP
  • Cache : Redis
  • Database : PostgreSQL
  • Message : RabbitMQ
  • Server : Nginx

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

cd ~/Applications/PhpStorm/GitHub

Windows

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

cd ~/Applications/PhpStorm/GitHub

Project

Requirement

  • Update your name for Git
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

git config --global init.defaultBranch main
git config --global credential.helper store

git config --global --list
  • Download this project
git clone https://github.com/xsuntel/symfony-scripts.git symfony
cd symfony && find ./scripts/ -type f -name "*.sh" -exec chmod 775 {} \;
git config --local user.name "Your Name"
git config --local user.email "[email protected]"

git config --local init.defaultBranch main
git config --local core.editor vi
git config --local core.autocrlf false
git config --local color.ui true
git config --local diff.ui auto
git config --local format.pretty oneline
git config --local push.default simple
git config --local credential.helper store

git config --local --list
  • Check the latest version of Symfony - Releases

    • Update Default variables
vi env.app
./tools/tutorial/create.sh

Deployment

App

Tools

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

Production

Update the project

git config pull.rebase true

git reset --hard

git pull origin main -f

Directories

    app/
    
        | -- Symfony Framework -- |

    diagrams/
        cloud/
          aws/
        instance/
          app/
          cache/
          database/
          server/
          tools/
        source/
          ...
    scripts/
        base/
        cloud/
        docker/
        linux/
        macos/
        windows/
    tests/
    tools/
        console/
        git/
        ide/
        tutorial/
    .env.app
    .env.dev
    .env.dev.local
    .env.prod
    .gitignore
    .symfony.local.yaml
    docker-compose.yml
    LICENSE
    phpunit.xml.dist
    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