Giter VIP home page Giter VIP logo

blogcafe's Introduction

BlogCafé ☕️

BlogCafé is a simple Single Page Blog Application built with Laravel 5.8 and Vue2.

BlogCafé allows users create accounts, create blog posts with multiple images upload feature, view all blog posts and view a single blog post content.

BlogCafé is a end product of a blog tutorial I wrote detailing how to build and implement a blog system with multiple image upload using Vuejs(a frontend SPA) and Laravel.

Features

  • Login
  • Register
  • Multiple Image upload
  • Create Blog Post
  • View Blog Post

Preview

Installation

Clone repository

clone repository to your local machine

git clone https://github.com/MartinsOnuoha/BlogCafe.git

Change Directory

Navigate into the project directory

cd BlogCafe

Copy .env file

copy content of the environment file

cp .env.example .env

Edit .env file

Update .env file with DB information

  DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=blogcafe
  DB_USERNAME=root
  DB_PASSWORD=grimesBottom

Install laravel packages

Remove composer.lock file and install packages

rm composer.lock
composer install

Generate Key

Generate application key from your terminal

php artisan key:generate

Install npm packages

Remove package-lock.json file and install npm packages

rm package-lock.json
npm i

Run Migrations

Run database migrations and seed the post tables

php artisan migrate:fresh --seed

Start Application

php artisan serve

Go to localhost:8000 and register, start blogging 🎉

blogcafe's People

Contributors

dependabot[bot] avatar jsunsh1new avatar martinsonuoha avatar slycreator avatar wbarnard81 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blogcafe's Issues

TypeError: that.getAllPost in CreatePost.vue not a function

api.post('/post/create_post', formData, {headers: {'Content-Type': 'multipart/form-data'}})
.then((res) => {
this.title = this.body = '';
this.status = true;
this.showNotificaiton('Post Successfully Created');
this.isCreatingPost = false;
this.imageList = [];
that.getAllPosts();
});

Problem with app.js

Hello
i have a question because we cloned the your github project blogcafe but after the install he have a problem with the app.js
the images that have already been uploaded are not displayed
can you help us i attached a picture about the logg
dear team
error

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.