Skip to content

hoochicken/adventures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adventures

requirements

Requirement Source Note
yarn https://classic.yarnpkg.com/en/docs/install/#windows-stable
npm https://nodejs.org/en/download/
php https://windows.php.net/download/ php.ini mit folgenden aktivierten Modulen:
*extension=pdo_mysql
*extension=openssl
composer https://getcomposer.org/download/
browser https://addons.mozilla.org/de/firefox/addon/vue-js-devtools/?src=search

kick-starting the project

## client ? 
yarn install

## server ? 
composer install

running the project

# start vue, awaits you on http://127.0.0.1:8080/ 
cd adv-client
yarn serve

# start backend, awaits you on http://127.0.0.1:8000/
cd adv-server
php -S 127.0.0.1:8000 -t public

# start dockers for mysql
docker-compose up
# phpmyadmin exposed to 8081, so: http://127.0.0.1:8081/

# styleguidist
cd adv-client
npm run styleguide
# styleguidist expostd to 6060, so: http://localhost:6060/

endpoints

Type Name Url
Frontend vue http://127.0.0.1:8080/
Backend Symfony http://127.0.0.1:8000/
Database phpMyAdmin http://127.0.0.1:8081/

Renew Entity classes by doctrine

Doctrine uses a php fil, it is called via cli.

A. Doctrine maps existing database

cd adv-server

# generate php classes
php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity

# add getter/setter methods
php bin/console make:entity --regenerate App
# this should generate repository a well, but doesn't, so:

# got to entity file
# add "* @ORM\Entity(repositoryClass="App\Repository\ActionRepository")" within class comment
# regenerate class
php bin/console make:entity --regenerate App

B. Generate New Entity By Doctrine

cd adv-server

# create entity
php bin/console make:entity
# follow instructions given by doctrine

# create entity
php bin/console make:migration

# create table in database
php bin/console doctrine:migrations:migrate

based on

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published