Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadzaid1 authored Jan 4, 2025
1 parent 83786c4 commit 64e7393
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ After careful consideration, **the Medieval Theme** has been chosen.
The tools are:
- **Character Card Maker**
- **Timeline Maker**
- **Name Generator** **_(it doesn't work, download the sqlite database in the repo and configure your php to make it work)._**
- **Name Generator** **_([it doesn't work, download the SQLite database in the repo and configure your PHP to make it work](#setting-up-the-name-generator))._**

3. **Reviews Section**
- **Section Title**: **What People Are Saying**
Expand All @@ -59,6 +59,29 @@ After careful consideration, **the Medieval Theme** has been chosen.

- A link to **Other Sites** for related or additional resources.
---
### Setting Up the Name Generator

To make the Name Generator work, you'll need to:

1. **Download SQLite**:
Download and install SQLite from [sqlite.org](https://www.sqlite.org/).

2. **Install PHP SQLite Extension**:
Ensure that the PHP SQLite extension is installed and enabled on your server.

3. **Configure Database Path**:
In the `nameGenerator.php` file, set the path to your SQLite database like so:

```php
<?php
// Path to your SQLite database file
$db_path = 'path_to_your_database.sqlite';

// Connect to SQLite database
$db = new SQLite3($db_path);
?>
**Sqlite is much more efficient compared to the bloat MySql***
---
### Acknowledgments

Thanks to [Janelle Shane's DnD Characters GitHub Repository](https://github.com/janelleshane/DnD-characters) for inspiring character names used in this project.
Expand Down

0 comments on commit 64e7393

Please sign in to comment.