|
1 | 1 | # Library CMS Project
|
2 |
| - |
3 | 2 | This site will be a full functional Content Management System for a small Library.
|
4 | 3 | It will be able to view the books in them, add new ones, edit existing books as well as delete them.
|
5 | 4 |
|
| 5 | +## Set Up |
| 6 | +```bash |
| 7 | +# Clone the repo |
| 8 | +git clone https://github.com/18WDWU02/Library-CMS.git |
| 9 | +cd Library-CMS |
| 10 | +# Install the dependancies |
| 11 | +composer install |
| 12 | +``` |
| 13 | +Create a .env file in your root directory. An example has been given of what the variable names need to be. |
| 14 | + |
| 15 | +PROJECT_URL= URL TO ROOT DIRECTORY |
| 16 | +DB_HOST= DATABASE HOST |
| 17 | +DB_USER= DATABASE USERNAME |
| 18 | +DB_PASS= DATABASE PASSWORD |
| 19 | +DB_TABLE= DATABASE TABLE NAME |
| 20 | + |
| 21 | +A copy of the database is included in the repo (library.sql). |
| 22 | +It doesn't matter what your database name is, as long as you put the right one in the .env file |
| 23 | + |
| 24 | + |
6 | 25 | ## Tasks
|
7 | 26 | Here are all the tasks given in these lessons. They will all be individually listed in the [task folder in the repo ](https://github.com/18WDWU02/Library-CMS/tree/master/tasks), but all listed bellow.
|
8 | 27 |
|
@@ -47,5 +66,10 @@ Using the select query, view the entires which you created in the previous task.
|
47 | 66 | 4. Add the select query to the update page to be able to see the information which you are updating, based on the entry you are requesting
|
48 | 67 |
|
49 | 68 | **Extra Tasks**
|
50 |
| - |
51 | 69 | Create more complex queries like getting the latest entry, getting the smallest, largest etc.
|
| 70 | + |
| 71 | +#### Task 4 |
| 72 | +Using the update query, create a new form which will update existing entries in your database |
| 73 | +1. Make sure you are still validating the form, even though the data is there on the load, people can still edit it to fail validation |
| 74 | +2. If there is something which the user doesn't need to change, then make sure to include the validation if they do change it |
| 75 | +3. Remove any references of the old entry from your project ie. old images, files |
0 commit comments