Giter Club home page Giter Club logo

laravel-blog-post's Introduction

How to Install this Project

Preparation

  1. Has a CLI/Command Line Interface in the form of Command Prompt (CMD) or Power Shell or Git Bash (hereinafter we call the terminal).
  2. Have a Web Server (eg XAMPP) with PHP version at least 7.1.3.
  3. Composer has been installed, check with the composer -V command via the terminal.
  4. Have an internet connection (for the installation process).

Install

  1. Download the Source Code from the Github repo laravel-blog-post in Zip form
  2. Extract the zip file (source code) into the htdocs directory on XAMPP, for example htdocs/laravel-blog-post. OR
git clone https://github.com/yudihendrawan/laravel-blog-post.git
  1. Via terminal, cd to the laravel-blog-post directory.
  2. (According to the installation instructions) In the terminal, give the command This requires an internet connection.
composer install
  1. Composer will install the package dependencies from the source code until it is finished.
  2. Run the php artisan command, to test whether the Laravel artisan command works.
  3. Create a new (empty) database in mysql (via phpmyadmin) with the name crud.
  4. Duplicate the .env.example file, then rename it to .env.
  5. Go back to the terminal, php artisan key:generate.
  6. Database connection settings in the .env file (DB_DATABASE, DB_USERNAME, DB_PASSWORD).
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=crud
DB_USERNAME=root
DB_PASSWORD=
  1. If you just want to create a table, run the php artisan migrate command. Check in phpmyadmin, the table should appear.
  2. Once finished, run the php artisan serve command then it can be accessed by http://localhost:8000/
  3. To create a public resource, you can use the php artisan storage:link command
  4. Once finished, run the php artisan serve command then it can be accessed by http://localhost:8000/
  5. To be able to access added categories, you need a user with the admin role. for that, open php my admin. open the users table, edit the is_admin column to 1 or (True). default is 0 or (False)

laravel-blog-post's People

Contributors

yudihendrawan 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.