Giter Site home page Giter Site logo

booktour's Introduction

Cài đặt

yêu cầu: PHP version >=7.4

Bước 1: Mở Terminal và thực hiện clone dự án và vào thư mục dự án bằng câu lệnh sau:

git clone https://github.com/kurobaradev/BookTour.git
cd BookTour
cd TravelAdmin 

Bước 2: Chạy composer và npm để cài đặt các gói cần thiết trong dự án

composer install
npm install  

Bước 3: Tạo database và config database -Vào mysql workbech hoặc adminer tạo ra database mới
-Ví dụ tạo database có tên là : DataTravel -Sau đó ta thực hiện lệnh sau để copy ra file env: -cp .env.example .env -Cập nhật file env của bạn như sau:

DB_CONNECTION=mysql          
DB_HOST=127.0.0.1            
DB_PORT=3306                 
DB_DATABASE=DataTravel
DB_USERNAME=root             
DB_PASSWORD=   

Bước 4: Tạo ra key cho dự án

php artisan key:generate

Bước 5: Tạo ra các bảng và dữ liệu mẫu cho database

php artisan migrate
php artisan db:seed

Bước 6: Storage:link

php artisan storage:link

-Sau khi cài dự án bạn phải chạy lệnh trên để public thư mục lưu trữ của bạn khi người dùng upload ảnh. Bước 7: Sau khi dự án của bạn được cài đặt, bạn hãy chạy phpunit. để đảm bảo tất cả các chức năng đang hoạt động chính xác. Từ gốc của dự án của bạn chạy:

Php artisan serve

booktour's People

Contributors

kurobaradev avatar nminhtrung666 avatar tranvanhoanuda avatar giangthanhh 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.