Giter VIP home page Giter VIP logo

blogapp's Introduction

BlogApp

Description

BlogApp is a web application built with Laravel that allows users to create, view, edit, and delete blog posts. It provides a user-friendly interface for managing blog content and interacting with other users' posts.

Installation (Without Docker)

  • To run the BlogApp locally, follow these steps:

Clone the Repository:

git clone <repository-url>

Navigate to the Project Directory:

cd blogapp

Install Dependencies:

composer install

Configure Database in .env File:

DB_DATABASE=******
DB_USERNAME=******
DB_PASSWORD=*****

Replace stars to your mysql db password,username and db name for the project.

Generate Application Key:

php artisan key:generate

Installation (By Docker)

Build Docker Image:

docker-compose build

Start Docker Containers:

docker-compose up -d

Access the Application:

Open your web browser and visit http://localhost to access the BlogApp.

Architecture

The BlogApp project follows the Model-View-Controller (MVC) architecture pattern, with additional components such as:

--Models: Represent database tables and handle data manipulation. --Views: Render HTML templates and present data to users. --Controllers: Handle incoming HTTP requests, process data, and send responses. --Routes: Define the endpoints and corresponding controller methods. --Middleware: Implement logic that filters HTTP requests entering the application.

Design Decisions

--Database Design: Utilizes a relational database schema to store blog posts and user information. --User Authentication: Implements user authentication and authorization for managing blog posts. --Frontend Framework: Utilizes Laravel Blade for server-side rendering and minimal JavaScript for interactivity. --Validation: Implements form validation to ensure data integrity and security. --RESTful API: Follows RESTful principles for defining API endpoints and handling HTTP methods.

Run Test cases:

If Data exits in tables run
-- php artisan migrate:fresh --env=testing
Run test for Blogs
-- php artisan test tests/Feature/BlogPostControllerTest.php
For Whole application
-- php artisan test

blogapp's People

Contributors

priyank21 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.