H-L / japanese-symfony

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

japanese-symfony

Build Status

This is a school project @hetic. The subject was creating a Japanese-like website with Symfony. Thanks to our teacher @Bunkermaster.

Installation

Requirements: To make this work you need to use PHP 7.0 and install/launch a mysql server (via Mamp for example).

To install this repo:

# Install the project locally
git clone git@github.com:H-L/japanese-symfony.git
cd japanese-symfony
composer install

# Installing DB and update it
php app/console doctrine:database:create
php app/console doctrine:schema:update

# For hard reset use this command before the 2 above, it will delete your current DB :
php app/console doctrine:database:drop

# We also created a command to initialise a little work database :
php app/console app:initialise:db

# Launch the server
php app/console server:run

Front End

The project works sass and gulp. The views are in Resources/views and the scss files are in Resources/scss. After running gulp sync, scss files with compile automatically.

For views, public site views are in Resources/views/default. All views extends scss/base.html.twig, which contains header and footer. A folder by page is done, with a main file page/page.html.twig, and optionnal other views. This other views of /page must be included in the main file.

Gulp Commands

# Launch the server : will sync assets and launch symfony server:run command :
gulp sync

# Just the assets, without launching the server :
gulp watch

Commits

Commit messages must follow this guide : gitmoji | An emoji guide for your commit messages with in addtion 🙏 for merge conflict commits.

you can also add brackets to precise the subject of the commit. exemple : git commit -m ":lipstick: [maid-page] made css for search bar"

Branches

Call uour branches with clear, short names. You can add a 'flag' to indicate the purpose of the branch : -New : new feature -Fix : fixing a bug -Hotfix : critical quick fix

exemple : git checkout -b New-Maid_entity

Test Users

The command php app/console app:initialise:db creates two test users.

username : testUser email : test@user.com password : testpass

username : adminUser email : adminUser@user.com password : adminpass

Custom commands

Here is a list of custom commands we made to create/list our DB items easily :

# Create a Maid
php app/console app:maid:add

# Listing Maids
php app/console app:maid:list

# Create a restaurant
php app/console app:restaurant:add

# Create/import Images from local dir to DB and copy images in web/uploads/images
php app/console app:add_images

# Create a timeslot for scheduling
php app/console app:timeslot:add

Team & Collaborators

Our team is called カワイイTV (KAWAII TV ). It is composed of 6 members:

  • Marie-Alix LESELLIER | Developper Back-end @m-a-l
  • Hadrien LEPOUTRE | Developper Back-end @H-L
  • Alexandra COSSID | Developper Front-end @acossid
  • Alexandre CHICHPORTICH | Developper Front-end @alexandrechich
  • Blas ALVIZ | Designer @BlasAlviz
  • Raphaëlle LIMOGES | Designer @lraphy

About


Languages

Language:PHP 53.2%Language:CSS 25.8%Language:HTML 19.1%Language:JavaScript 1.1%Language:ApacheConf 0.8%