Giter Site home page Giter Site logo

talentedev / symfony-vue-coreui Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 256 KB

Symfony & Vue, core-ui project

Makefile 0.02% Shell 0.07% Dockerfile 0.04% SCSS 0.43% Vue 20.56% JavaScript 8.79% PHP 69.64% Twig 0.44%
symfony vue vuex coreui axios webpack chartjs doctrine-orm

symfony-vue-coreui's Introduction

Setup

First, make sure you are running the latest version of Docker and Docker Compose.

Windows is not supported, period.

On macOS, add those lines in your /etc/hosts file:

127.0.0.1   web.localhost
127.0.0.1   phpmyadmin.web.localhost

Clone the project, move to its root directory and run:

$ cp .env.template .env
$ make up

This command will start the stack and also run the following commands in the web service:

  • composer install: installs PHP dependencies
  • yarn install: installs frontend dependencies
  • php bin/console doctrine:migrations:migrate --no-interaction: runs the migration patches on the database

Once the web service is ready, you may now run bash inside it with:

$ make bash

Here you have to run the following commands:

$ yarn dev
# builds the frontend application...
$ php bin/console doctrine:fixtures:load --append
# adds fake data in the database...

Note: a watcher is also available with yarn watch.

Available commands

$ make up

Starts the stack.


$ make down

Stops the stack


$ make bash

Runs bash inside the web service.

Workflow before each push

Run the following command in the web service:

$ composer run csfix && composer run cscheck && composer run phpstan

Workflow for database tables generation

Go the web service:

$ make bash

Create your PHP entity:

$ php bin/console make:entity

Generate the migration script:

$ php bin/console doctrine:migrations:diff

Execute the migration script to generate your db:

$ php bin/console doctrine:migrations:migrate

symfony-vue-coreui's People

Contributors

talentedev avatar

Watchers

 avatar  avatar

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.