Skip to content

Commit b43de17

Browse files
author
RichardHpaYoobee
committed
added tasks and set up
1 parent 742eb3b commit b43de17

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

Readme.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
# Library CMS Project
2-
32
This site will be a full functional Content Management System for a small Library.
43
It will be able to view the books in them, add new ones, edit existing books as well as delete them.
54

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+
625
## Tasks
726
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.
827

@@ -47,5 +66,10 @@ Using the select query, view the entires which you created in the previous task.
4766
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
4867

4968
**Extra Tasks**
50-
5169
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

tasks/task4.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#### Task 4
2+
Using the update query, create a new form which will update existing entries in your database
3+
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
4+
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
5+
3. Remove any references of the old entry from your project ie. old images, files

0 commit comments

Comments
 (0)