{"id":15106101,"url":"https://github.com/wesleyaldrich/pdiary","last_synced_at":"2026-01-19T03:33:44.044Z","repository":{"id":257382434,"uuid":"858043145","full_name":"wesleyaldrich/PDiary","owner":"wesleyaldrich","description":"PDiary is a Laravel web application to learn basic CRUD (Create, Read, Update, Delete) with Laravel. Alongside Blade, Bootstrap 5.3 is also used for front-end side for the sake of practice. By preference, I use diaries for the CRUD objects for no particular reason.","archived":false,"fork":false,"pushed_at":"2024-09-17T02:48:48.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T08:48:51.849Z","etag":null,"topics":["bootstrap","crud-application","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wesleyaldrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T07:47:52.000Z","updated_at":"2024-09-18T08:00:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"461edcac-2ae2-4247-945a-6a0778a2db3d","html_url":"https://github.com/wesleyaldrich/PDiary","commit_stats":null,"previous_names":["wesleyaldrich/pdiary"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyaldrich%2FPDiary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyaldrich%2FPDiary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyaldrich%2FPDiary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyaldrich%2FPDiary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesleyaldrich","download_url":"https://codeload.github.com/wesleyaldrich/PDiary/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247341048,"owners_count":20923368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","crud-application","laravel","php"],"created_at":"2024-09-25T21:00:37.568Z","updated_at":"2026-01-19T03:33:44.037Z","avatar_url":"https://github.com/wesleyaldrich.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDiary Web Application\n\nPDiary is a Laravel web application to learn basic CRUD (Create, Read, Update, Delete) with Laravel.\nAlongside Blade, Bootstrap 5.3 is also used for front-end side for the sake of practice.\nBy preference, I use diaries for the CRUD objects for no particular reason.\n\n## Prerequisites\n\nTo run this project locally, for me, I'm using **Herd** for **Nginx** and **PHP-8.3**, and **XAMPP** for **MySQL**.\n\n- [Git](https://git-scm.com/) (to clone the repository)\n- [Composer](https://getcomposer.org/) (to manage Laravel dependencies)\n- [Herd](https://herd.dev/) (for Nginx and PHP)\n- [XAMPP](https://www.apachefriends.org/) (for MySQL)\n\n## Setup Instructions\n\n### 1. Clone the repository\n```bash\ngit clone https://github.com/wesleyaldrich/PDiary.git\ncd PDiary\n```\n\n### 2. Install Laravel dependencies\nMake sure you have [Composer](https://getcomposer.org/) installed, then run:\n```bash\ncomposer install\n```\n\n### 3. Configure Environment Variables\nDuplicate the `.env.example` file and rename it to `.env`:\n```bash\ncp .env.example .env\n```\nEdit the `.env` file to configure the database and other necessary settings. Example configuration for MySQL (using XAMPP):\n```env\nDB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=pdiary\nDB_USERNAME=root\nDB_PASSWORD=\n```\n\n### 4. Generate Application Key\n```bash\nphp artisan key:generate\n```\n\n### 5. Set up the database\nStart **XAMPP** and enable **MySQL**. Create a new database for your project in **phpMyAdmin**. For this case, you may want to name it **\"pdiary\"**.\nIf **phpMyAdmin** refuses to run (since **Apache** won't start), you may have to disable **Nginx** temporarily in **Herd** by doing:\n```bash\nherd stop\n```\n\nThen, run the database migrations:\n```bash\nphp artisan migrate\n```\n\n### 6. Start Nginx and PHP with Herd\nMake sure you have [Herd](https://herd.dev/) installed, start the default **Herd** services:\n```bash\nherd start\n```\n\nThis will start **Nginx** and **PHP** services.\nOnce you have **Herd** installed, it is recommended to put the _\"pdiary\"_ folder inside _\"Herd\"_ directory\n(in my case: \"C:\\Users\\Wesley\\Herd\\pdiary\").\n\n### 7. Manage the PDiary database with Herd\nOpen the **Herd desktop application** and go to **\"Open Sites\"**, you will see the information about your web app if it's inside the **Herd** directory.\nClick \"Open\" in the \"Database\" row to open **AdminerEvo**. Or you can simplify this whole process by visiting the URL:\n```\nhttp://database.herd.test\n```\n\nOr you can also do this instead if you have the same local MySQL credentials as me to simplify even more.\n```\nhttp://database.herd.test/?mysql\u0026server=127.0.0.1:3306\u0026username=root\u0026password=\u0026db=pdiary\n```\n\n## Access the Application\n\nOnce you've followed the setup steps, the local web app is accessible by visiting the URL: \n\n```\nhttp://pdiary.test\n```\n\nYou should see the **PDiary** web application running locally.\n\n- Note: Your web app URL could be different, double check by opening your **Herd desktop application** and go to **\"Open Sites\"**\nto see the information about your web app if it's inside the **Herd** directory.\n\n## Image Previews\n\n![image](https://github.com/user-attachments/assets/d8a021be-9757-4e6f-b821-5922748e2c15)\n![image](https://github.com/user-attachments/assets/ed046095-00bc-40db-9bd9-d3138eff35f0)\n![image](https://github.com/user-attachments/assets/35ae6c2c-172b-4623-9006-68e51c369162)\n![image](https://github.com/user-attachments/assets/b965ce9c-b28f-41d1-a92d-5410e64c6f54)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyaldrich%2Fpdiary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleyaldrich%2Fpdiary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyaldrich%2Fpdiary/lists"}