Giter VIP home page Giter VIP logo

laravel-todolist's Introduction

Todolist

Laravel project sample

Requirement

  • PHP >= 8.1
  • node >= 16.1.0 (for npm)
  • postgres >= 12

or use

  • docker
  • docker compose

test route

http://localhost:9090

test account

[email protected]/password

Installation

local (required php, node, postgresSql)

composer install
npm install
npm run dev
php artisan migrate
php artisan db:seed (if you need)
php artisan serve

docker compose

  • 建立環境:
docker-compose up -d --build
docker-compose exec app sh -c "composer install"
docker-compose exec app sh -c "php artisan migrate"
docker-compose exec app sh -c 'php artisan db:seed'
docker-compose exec app sh -c 'php artisan storage:link'
docker-compose exec node sh -c "npm install && npm run dev"
  • develop in watch mode:
docker-compose up -d
docker-compose exec node sh -c "npm run watch"
  • build pages in dev:
docker-compose up -d
docker-compose exec node sh -c "npm run dev"
  • install js packages: ( or just run npm install)
docker-compose exec node sh -c "npm install"
  • 更新 database:
docker-compose exec app sh -c "php artisan migrate"
  • 建立假資料
docker-compose exec app sh -c "php artisan db:seed"
  • 清除 docker
docker-compose down -v

Makefile (required docker & docker compose)

  • 建立環境:
make build-local
  • develop in watch mode:
make run-watch
  • build pages in dev:
make run-dev
  • install js packages: ( or just run npm install)
make npm-install
  • 更新 database:
make run-migrate
  • 建立假資料
make run-seed
  • 清除 docker
make stop-dev

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.