Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emmo00/blog-app
https://github.com/emmo00/blog-app
blog blogapp laravel
Last synced: about 15 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/emmo00/blog-app
- Owner: Emmo00
- Created: 2024-06-07T17:22:26.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-13T14:50:14.000Z (7 months ago)
- Last Synced: 2024-06-13T17:44:25.280Z (7 months ago)
- Topics: blog, blogapp, laravel
- Language: PHP
- Homepage:
- Size: 116 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog App
This is a simple Laravel project setup guide. Follow the steps below to get your Laravel application up and running.
## Prerequisites
Before you begin, ensure you have the following installed on your machine:
- [PHP](https://www.php.net/manual/en/install.php) (version 7.4 or later)
- [Composer](https://getcomposer.org/download/)
- [Node.js and npm](https://nodejs.org/) (for frontend dependencies)
- [MySQL](https://www.mysql.com/downloads/) or another supported database## Installation
### Step 1: Clone the Repository
```bash
git clone https://github.com/emmo00/blog-app.git
cd blog-app
```### Step 2: Install Dependencies
Install PHP dependencies using Composer:
```bash
composer install
```### Step 3: Configure Environment Variables
Copy the `.env.example` file to `.env`:
```bash
cp .env.example .env
```Generate an application key:
```bash
php artisan key:generate
```### Step 4: Configure Database
Open the `.env` file and update the following lines with your database configuration:
```env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
```### Configure Cloudinary
Open the `.env` file and add your cloudinary url
```env
CLOUDINARY_URL=cloudinary://724979928357437:@drcwe987o
```### Step 5: Run Migrations
Run the database migrations to create the necessary tables:
```bash
php artisan migrate
```### Step 6: Seed the Database (Optional)
If you want to seed the database, run:
```bash
php artisan db:seed
```### Step 7: Serve the Application
Start the Laravel development server:
```bash
php artisan serve
```By default, the application will be accessible at `http://127.0.0.1:8000`.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contributing
If you wish to contribute, please fork the repository and submit a pull request.