You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,22 +10,46 @@ A simple CRUD web project for user management.
10
10
Leave `XAMPP` up and running after its installation.
11
11
12
12
## Database
13
-
The database requires to be manually setup for this project.
14
-
- Access `phpMyAdmin` through `XAMPP` control panel and select the SQL tab.
13
+
The database needs to be manually set up for this project.
14
+
- Access `phpMyAdmin` through the `XAMPP` control panel and select the SQL tab.
15
15
16
-
- Copy the `ddl.sql` file located in the root of this project and paste it at the query box then click on `Execute`.
16
+
- Copy the contents of the `ddl.sql` file located in the root of this project and paste it into the query box, then click on `Execute`.
17
17
18
-
- Rename the `.env.example` file to `.env`, set your own values to the variables if required.
18
+
- Rename the `.env.example` file to `.env` and set your own values for the variables if required.
19
19
20
20
## Installation
21
21
Download the project by visiting the [releases page](https://github.com/PoweredTable/php-user-management/releases) of this repository and unzip the file, or you could also simply clone it.
22
22
23
-
To work with `XAMPP`, ensure the project will be located at `XAMPP`folder installation, e.g. `C:\xampp\htdocs`.
23
+
To work with `XAMPP`, ensure the project is located in the `XAMPP` installation folder, e.g. `C:\xampp\htdocs`.
24
24
25
25
Inside the project folder, install the required dependencies using `Composer`.
26
26
```bash
27
27
composer install
28
28
```
29
29
30
30
## Usage
31
-
Access the web page through http://localhost/php-user-management.
31
+
Access the web page through http://localhost/php-user-management. You should see the homepage below if the installation was done correctly.
32
+
33
+

34
+
35
+
Click on the **NEW USER** button. A modal will appear asking for user data input.
36
+
37
+

38
+
39
+
You must fill the form with the user **name**, **e-mail**, **phone** and a **photo**, which must be uploaded.
40
+
41
+
The **photo** must be a `.JPG`, `.JPEG` or `.PNG` file, other file extensions are not supported.
42
+
43
+

44
+
45
+
After clicking on **Save changes** you'll see an HTML alert box displaying whether the request was successfull or not.
46
+
47
+
A successful request will refresh the page, and the newly added user will appear.
48
+
49
+

50
+
51
+
You can also update or delete the user shown on the homepage. Click on the yellow 'U' button to update or the red 'D' button to delete.
0 commit comments