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

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.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
  • Download this project
git clone https://github.com/xsuntel/symfony-scripts.git symfony

cd symfony

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


# >>>> Platform
PLATFORM_TIMEZONE="Asia/Seoul"

# >>>> App
PHP_VERSION=8.3
PHP_FRAMEWORK_VERSION=7.0.*

NODE_VERSION=20

# >>>> Cache
REDIS_VERSION=6.0

# >>>> Database
POSTGRES_VERSION=14.8

# >>>> Server
NGINX_VERSION=1.18
./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


Directories

App

    app/
    
        | -- Symfony Framework -- |
        
    backup/
    diagrams/
        app/
        cache/
        database/
        server/
        tools/
    scripts/
        base/
        cloud/
        docker/
        linux/
        macos/
        windows/
    tools/
        git/
        ide/
    tutorial/
        symfony/
    .env.base
    .env.dev
    .env.dev.local
    .env.prod
    .env.prod.local
    .gitignore
    .symfony.local.yaml
    LICENSE
    README.md

Tutorial

Reference

  • Dev/Prod Environment - Wiki

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