mykisscool / blackjack-php

This is a simple player vs computer Blackjack game. It was created using only OO PHP and basic HTML/CSS.
https://blackjack-php.herokuapp.com/
MIT License
2 stars 2 forks source link

after installation of composer and everything is all downloaded , still not work #2

Open sherifdeen189 opened 4 years ago

sherifdeen189 commented 4 years ago

i had later got the download with composer using terminal and the commands but the file cannot still not see php class in the autoload , please can cause , i am stilll using the current json file to install the composer, what could be wrong

mykisscool commented 4 years ago

You'll need composer and npm to build this project properly.

Run:

composer install
composer dump-autoload -o
npm install

What is your error?

sherifdeen189 commented 4 years ago

I have run all this command and I had gotten the files , but still report class Game not found , I don't get it

Only "npm install " was not a valid command , as it report For the Bootstrap ,I have bootstrap file , I add it and it's working fine ,

Only when I try to run ,like when I press " new game" the it dies the errors

On Sun, Mar 1, 2020, 2:54 AM Mike Petruniak notifications@github.com wrote:

You'll need composer and npm to build this project properly.

Run:

composer install composer dump-autoload -o npm install

What is your error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mykisscool/blackjack-php/issues/2?email_source=notifications&email_token=AOWIXFP4LY4XHRG2BRKC2WDRFG55NA5CNFSM4K7AHUTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENMOTHI#issuecomment-593029533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOWIXFIOJ7JAFWRC7X73GATRFG55NANCNFSM4K7AHUTA .

sherifdeen189 commented 4 years ago

But only one thing is, I have to place your composer.json in the folder before it works, I mean before it install the file ,

My question maybe do I need another composer.json file to install my own file s ?

On Sun, Mar 1, 2020, 2:54 AM Mike Petruniak notifications@github.com wrote:

You'll need composer and npm to build this project properly.

Run:

composer install composer dump-autoload -o npm install

What is your error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mykisscool/blackjack-php/issues/2?email_source=notifications&email_token=AOWIXFP4LY4XHRG2BRKC2WDRFG55NA5CNFSM4K7AHUTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENMOTHI#issuecomment-593029533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOWIXFIOJ7JAFWRC7X73GATRFG55NANCNFSM4K7AHUTA .

mykisscool commented 4 years ago

I am assuming you installed this locally, first? Is the application accessed with an absolute path like http://myblackjack.test/ or with a relative path like http://mywebsite.test/blackjackgame?