2017 © Pedro Peláez
 

project skeleton-4

website skeleton

image

mbutelle/skeleton-4

website skeleton

  • Sunday, June 17, 2018
  • by mbutelle
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • Makefile
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Website skeleton

This symfony-flex skeleton using docker to start a local environment for website., (*1)

Prerequisites

  • docker : https://www.docker.com/
  • docker-compose : https://docs.docker.com/compose/
  • docker-hostmanager : https://hub.docker.com/r/iamluc/docker-hostmanager/dockerfile

Install

Rename container to avoid conflict with another project, (*2)

sed -i 's/skeleton/$PROJECT_NAME/g' Makefile docker/nginx/app.conf docker-compose.yml

database

if you need database, follow the next steps :, (*3)

  • uncomment db section in docker-compose file
  • uncomment db check on ready recipe of Makefile
  • add require ymfony/orm-pack and in composer.json
  • if you neded, add require-dev doctrine/doctrine-fixtures-bundle in composer.json

Finally, you have to fill env variable :, (*4)

DATABASE_URL=mysql://root:root@db.$PROJECT_NAME:3306/db_name

start the project

To start the environment :, (*5)

make start

compile vuejs file

To compile vuejs file and watch them :, (*6)

make watch

Go to homepage

To going to the hompeage :, (*7)

make open

database

To connecting to the database :, (*8)

make mysql

The Versions