IMPORTANT: This is the new repository for our project. We switched to the Laravel Framework since with the NodeJS framework we had to do a lot of nested callbacks (see http://callbackhell.com/).
sobamewei-shop.site
Admin Accounts:
Admin 1:
- Username:
admin1@conushop.com
- Password:
admin
Admin 2:
- Username:
admin2@conushop.com
- Password:
admin
Admin 3:
- Username:
admin3@conushop.com
- Password:
admin
- Batoul Yehia
- Sophia Quach*
- Melissa Duong
- Wei He
- Create a new connection if you don't have an existing one Go to the home page (click on the home icon on top LHS of page). You should see in the middle of the page 'MySQL Connections' Click on the '+' next to MYSQL Connections
- Setup your connection with mySQL Connection Method: Standard (TCP/IP) Hostname: localhost Port:3306 Username: root
- Click Test connecton. A message should appear: " A successful mySQL connection was made with the parameters defined for this connection"
- On the homepage, click on the new connection, enter the password (the one we always use)
- File > Run Script > Select the init.sql in app/docker/mariadb (in your laravel project directory)
- It should be successful including for : GRANT ALL ON conushop.* TO conushop@localhost IDENTIFIED BY 'isY2metT';
- Also, if you click on the LHS panel Server Status , you should see on the RHS a button saying Server Status Running
- To test the connection to mariaddb in cmd run : ping mariadb.
- If it says Ping request could not find mariadb, this means you have not set mariadb as host
- Use Notepad and right-click , run as Administrator and find file C:\Windows\System32\drivers\etc\host
- Edit by adding a new host: 127.0.0.1 mariadb
- Then rerun: ping mariadb
- You should receive a message containing Reply from 127.0.0.1 (meaning the connection works)
- Re rerun the SQL script in case. Click on File > Run Script > Select the init.sql in app/docker/mariadb (in your laravel project directory)
- Run laravel.dev
How to setup the debugger on phpStorm (if you already have Xdebug installed AND Xdebug helper on your chrome browser
- Run > Run/Debug Configurations
- Click on the "+" , then choose PHP Web Application
- For Name, set it to anything you want, doesn't matter
- For Server, click on the "..." to add a Server.
- For Name, set it to anything you want
- Host is set to laravel.dev, port 80, Debugger Xdebug
- DO NOT CHECK THE BOX next to Use path mapping, since you are only using a localhost as server
- Click ok
- For Start URL, keep as is (you should have a single "/" in the field, and right below the url http://laravel.dev)
- Click Apply
- Click OK
- Set a breakpoint/+ where you would like to debug (click on the right of the row number, and a red circle should appear). Or you can do Run > Toggle line Breakpoint
- Run > Debug 'laravel.dev'
- The web browser should start up, you should see the index.php page
- If you click on the Debugger tab at the bottom of your screen, you should see a stack of method calls, and variable names and values.
- To continue the debugging, use the arrows in the debug section (step into, over, etc)
- We recommend that you use Xampp to run the Laravel framework app by following this tutorial.
- Change Xampp's MySQL password to isY2metT by following this tutorial.
- Clone the Repository into htdocs with the folder named as laravel instead of ConUShop.
- Open the terminal.
- Go to the project repository folder.
- Type
php artisan database:sync
and press enter.
- Open the terminal.
- Go to the project repository folder.
- Type
composer update --no-scripts
and press enter.
- Go to
laravel.dev
on your browser (if you followed the tutorial in the installation step).
- Install docker
- — FOR DEV — // DISONNECT FROM THE SERVER DOCKER-MACHINE
eval $(docker-machine env --unset)
// Dev commands docker-compose up docker-compose up -d docker-compose exec mariadb mysql -u root < databaseScript.sql docker-compose stop
1)the terminal and go to your repository folder. 2) Type: composer require --dev lisachenko/php-deal Referenced from the php-deal framework https://github.com/php-deal/framework