Skip to content

Zolak94/my_app

Repository files navigation

Prerequisites

  • Apache Xampp >= 7.4.4
  • MySQL >= 5.7
  • PHP >= 7.4
  • phpMyAdmin >= 5.0.2
Type Value
MySQL Username root
Mysql Password
Mysql Database my_app

Database schema

TABLE users

Field Type Null Key Default Extra
id int(11) NO PRI NULL auto_increment
email varchar(60) NO NULL
first_name varchar(60) NO NULL
last_name varchar(60) NO NULL
password varchar(60) NO NULL
filename varchar(60) YES NULL
CREATE TABLE `users` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `email` varchar(60) NOT NULL,
 `first_name` varchar(60) NOT NULL,
 `last_name` varchar(60) NOT NULL,
 `password` varchar(60) NOT NULL,
 `filename` varchar(60) DEFAULT NULL,
 PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4

Getting your Environment Setup

  • Clone this repository on your machine https://github.com/Zolak94/my_app
  • Install Apache Xampp on your machine
  • Update your /etc/hosts file by adding this line at the end of file 127.0.0.1 testbox.test
  • Next step you need to open /xampp/apache/conf/extra/httpd-vhosts.conf and add this with path to your project repository.
<VirtualHost *:80>
   ServerName testbox.test
   DocumentRoot "C:/private/my_app"
   <Directory "C:/private/my_app">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order Deny,Allow
        Allow from all
        Require all granted
   </Directory>
</VirtualHost>
  • Start Xampp application and then start Apache module and MySQL module

Using application

  • To access the application go to this url: http://testbox.test/
  • To access applications database go to this url: http://testbox.test/phpmyadmin

PHPUNIT Testing

All tests are in /tests folder running this command will show code coverage

./vendor/bin/phpunit --coverage-text ./tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published