ioayoub / template-js-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template Hackathon JS/PHP

Symfony / React / API Platform

Requirements :

  • php 7.x (mini)
  • node 16.x (mini)
  • composer
  • yarn
  • symfony cli

To setup the project :

$ yarn install
$ composer install

Make a copy of the .env file

$ cp .env .env.local

Then change the DATABASE_URL with the correct informations.

Create the database :

$ php bin/console doctrine:database:create

In two differents prompts :

$ symfony server:start
$ yarn encore dev-server

For JS developpers :

When you pull back code you'll need to update database schema and load the fixtures :

$ php bin/console doctrine:migrations:migrate
$ php bin/console doctrine:fixtures:load

Nb: to add more and more packages use yarn instead of npm

About


Languages

Language:JavaScript 47.3%Language:PHP 40.2%Language:Twig 9.5%Language:CSS 3.0%