Skip to content

ca-dsgn/crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Example

Design: Christian Albert

How to setup this

  1. Go to your virtual host file of your apache vhost config. You can find this file in most cases here:
/etc/apache2/2.4/extra/httpd-vhosts.conf
/usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf
  1. Insert a vhost scheme for your localhost in apaches vhost config. Don't forget to replace the path to the project root of your local machine.
<VirtualHost *:80>
    DocumentRoot "/Library/WebServer/Documents/crud"
    ServerName dev.crud
</VirtualHost>
  1. Add this line to your hosts file. You can find this file in most cases here: /etc/hosts
127.0.0.1       dev.crud
  1. Make sure, that apaches mod_rewrite is activated in your apache config: /etc/apache2/2.4/httpd.conf
LoadModule rewrite_module libexec/mod_rewrite.so
  1. Restart your apache
sudo apachectl restart
  1. Execute crud.sql in your local database

  2. Create/Update credentials.ini file: /php/inc/credentials.ini

[crud]
host = "localhost"
username = "root";
pass = "";
db_name = "crud";
  1. composer install (Check required stuff in composer.json)

About

CRUD Example for DHBW

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published