Yii Framework Forum: yii2-app-advanced with multiple console applications - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

yii2-app-advanced with multiple console applications Best filesystem structure

#1 User is offline   sisma 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 28-June 14

Posted 01 August 2016 - 11:10 AM

Hi to all!

I need to implement an application consisting of 3 parts:

1 - "server" (backend) console application
2 - "client" (frontend) console application
3 - "client" (frontend) web application

The server and the client applications are not indipendent because they use some common models.

What is the best directory structure? And so the best yii2 template?
Is the yii2-app-advanced the best way to start with? And if I use it, how can I handle the two different console application with the yii script?

Any other advice about the best structure to implement multiple console (sub-)applications?

Thanks.
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 02 August 2016 - 03:26 AM

Advanced template looks like a good start. I see it as 3 separate applications. You'll need two separate entry scripts for console such as ./yii-client and ./yii-server.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#3 User is offline   sisma 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 28-June 14

Posted 02 August 2016 - 05:47 AM

Thank you samdark, i will follow your advice.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users