chrisleekr / yii2-angular-boilerplate

Yii2 REST API + Angular 12 Boilerplate (Frontend/Backend)
https://yam-boilerplate.chrislee.kr/
MIT License
224 stars 101 forks source link

setup the app without docker #12

Closed chanakafit closed 6 years ago

chanakafit commented 6 years ago

Can you provide a guide to set up the app without docker?

chrisleekr commented 6 years ago

@chanakafit

It should be straightforward.

  1. Build Angular apps by executing ng build --prod
  2. Upload api and backend/dist folders to your host

You will need to update some configurations as well.

If you need further help, please let me know.

sanojsilva commented 6 years ago

if we are setting up the app without the doker do we have to setup the database ourselves

sanojsilva commented 6 years ago

@chrisleekr

I'm having trouble setting up the api without docker can u please explain what i should do

chrisleekr commented 6 years ago

Hi @sanojsilva

Just download XAMPP in your desktop and setup MySQL database.

And update Yii2 db configuration which is located in /api/config/db.php.

sanojsilva commented 6 years ago

Hey @chrisleekr I have successfully setup the application with xampp. but there is a table missing -> auth_item_child. if you could put the table creating queries that would be great. And Just want to tell you This project is great. Nice Work. Thank You.

chrisleekr commented 6 years ago

Hi @sanojsilva

If you read Dockerfile as well as docker-entrypoint.sh, then you will see what process should be done with initialisation.

To answer your question, following commands will fix your database issue.

$ ./yii migrate --migrationPath=@yii/rbac/migrations --interactive=0
$ ./yii migrate/up --interactive=0
sanojsilva commented 6 years ago

Hey @chrisleekr

Thanku very much it worked perfectly