Giter Site home page Giter Site logo

flexy-changelle's Introduction

Environment Setting

This project was developed with Docker containers, below are the docker images used:

  • nginx:stable-alpine
  • mysql:latest
  • php:7.4-fpm

Let's start with the commands to upload containers.

cd Symfony
sudo docker-compose up --build -d

After a few minutes the terminal will return a message similar to this:

Successfully built ef6bdbd7708d
Successfully tagged symfony_php:latest
Pulling nginx (nginx:stable-alpine)...
stable-alpine: Pulling from library/nginx
540db60ca938: Pull complete
b824a2584ece: Pull complete
82d0e0426b2d: Pull complete
ed76aa154407: Pull complete
ef4cf5a20f8a: Pull complete
9d3441de5d5e: Pull complete
Digest: sha256:bac218df22fef66a173cfa65d0dfa0acca80a3a39df41665be742596977b6c7c
Status: Downloaded newer image for nginx:stable-alpine
Creating database ... done
Creating php      ... done
Creating nginx    ... done

It means we can continue.

Access the php container:

sudo docker-compose exec php /bin/bash

Now run the command to download symfony packages by composer:

composer install --prefer-dist

Check if the DATABASE_URL variable of env.local is the same as the line below:

DATABASE_URL="mysql://root:secret@database:3306/symfony_docker?serverVersion=8.0"

Check out the minimum requirements for Symfony with command:

symfony check:requirements

Prepare the database and tables with the commands:

symfony console doctrine:migrations:migrate

To populate tags in Crud, launch App Fixtures

php bin/console doctrine:fixtures:load

The End

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.