Skip to content

This is a LAMP stack web application that can perform account creation and CRUD operations as a Harry Potter themed contact manager!

Notifications You must be signed in to change notification settings

COP-4331-Small-Project/LAMP-stack-website

Repository files navigation

MyHogwarts - Contact Manager

This is a LAMP stack web application that can perform account creation and CRUD operations as a Harry Potter themed contact manager!

Setup(done in PHPStorm)

Note: <project directory is the PhpStorm project directory. This is located in <user dir>/PhpStorm Projects/<project name>.

  1. Install PhpStorm for your operating system. You can apply for an education license to get it for free.

    1. Once installed, open it an import the project from GitHub.
  2. Install PHP and MySQL. This varies based on your OS.

    • For Windows users:
      1. Install Chocolatey, a Windows packaging manager.
      2. Install PHP (run in admin PowerShell): choco install php
      3. Install MySQL: choco install mysql
    • For Mac users:
      1. Install PHP: curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
      2. Install MySQL.
      3. Connect PHP and MySQL together:
         sudo su - cd /var mkdir mysql cd mysql ln -s /tmp/mysql.sock mysql.sock
    • For Ubuntu users:
      1. Run the following commands:
        sudo apt update sudo apt install mysql-server php php-mysql
  3. All OS's: PhpStorm needs to know what PHP interpreter to use. Make sure it knows which to use:

    1. In PhpStorm, go to File > Settings (Ctrl+Alt+S)
    2. Go to Languages & Frameworks > PHP
    3. Click the ellipses on the right
    4. Click the + icon
    5. Select which binary to use
    6. Restart PhpStorm
  4. Create a new database in PhpStorm.

    1. Open PhpStorm.
    2. Go-to
     View -> Tool Windows -> Database 
    1. Go to the new tab opened on the right and click on the plus on the top left. Hover over Data Source and click on MySQL.
    2. We need to change a couple of options in the window that popped up. In the Host,User,Password,Database field place your database credentials for smallproject. Contact the database manager if you do not know your database credentials. At the bottom of the window, click Download missing driver files link.
    3. Click okay.

All done! You may now access the application from http://localhost:3000

If you cannot see the application, launch PhpStorm and click the browser icon in the editor.

About

This is a LAMP stack web application that can perform account creation and CRUD operations as a Harry Potter themed contact manager!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5