ManagementSystem/BACKEND
JOSEPH LE 839bbbac82 first commit 2024-05-13 15:49:01 +07:00
..
.doc first commit 2024-05-13 15:49:01 +07:00
.docker first commit 2024-05-13 15:49:01 +07:00
Modules first commit 2024-05-13 15:49:01 +07:00
app first commit 2024-05-13 15:49:01 +07:00
bootstrap first commit 2024-05-13 15:49:01 +07:00
config first commit 2024-05-13 15:49:01 +07:00
database first commit 2024-05-13 15:49:01 +07:00
public first commit 2024-05-13 15:49:01 +07:00
redis first commit 2024-05-13 15:49:01 +07:00
resources first commit 2024-05-13 15:49:01 +07:00
routes first commit 2024-05-13 15:49:01 +07:00
storage first commit 2024-05-13 15:49:01 +07:00
stubs/nwidart-stubs first commit 2024-05-13 15:49:01 +07:00
tests first commit 2024-05-13 15:49:01 +07:00
.editorconfig first commit 2024-05-13 15:49:01 +07:00
.env.dev first commit 2024-05-13 15:49:01 +07:00
.env.docker first commit 2024-05-13 15:49:01 +07:00
.env.example first commit 2024-05-13 15:49:01 +07:00
.gitattributes first commit 2024-05-13 15:49:01 +07:00
.gitignore first commit 2024-05-13 15:49:01 +07:00
Dockerfile first commit 2024-05-13 15:49:01 +07:00
README.md first commit 2024-05-13 15:49:01 +07:00
artisan first commit 2024-05-13 15:49:01 +07:00
composer.json first commit 2024-05-13 15:49:01 +07:00
composer.lock first commit 2024-05-13 15:49:01 +07:00
docker-compose.yml first commit 2024-05-13 15:49:01 +07:00
docker-entrypoint.sh first commit 2024-05-13 15:49:01 +07:00
logo.svg first commit 2024-05-13 15:49:01 +07:00
modules_statuses.json first commit 2024-05-13 15:49:01 +07:00
package.json first commit 2024-05-13 15:49:01 +07:00
phpunit.xml first commit 2024-05-13 15:49:01 +07:00
pnpm-lock.yaml first commit 2024-05-13 15:49:01 +07:00
postcss.config.js first commit 2024-05-13 15:49:01 +07:00
tailwind.config.js first commit 2024-05-13 15:49:01 +07:00
vite.config.js first commit 2024-05-13 15:49:01 +07:00

README.md

Docker

Build

  1. Run Docker
cp .env.docker .env
docker compose up
  1. Open Backend

http://localhost:{APP_PORT}

eg: http://localhost:8000

{APP_PORT}: is varible in environment .env

Exec

docker exec -it payment ...

Module

  1. Create a new module
docker exec -it payment php artisan module:make {MODULE_NAME}
  1. Some scripts often used
docker exec -it payment php artisan module:make-model {model} {MODULE_NAME}
docker exec -it payment php artisan module:make-controller {controller} {MODULE_NAME}
docker exec -it payment php artisan module:make-request {request} {MODULE_NAME}
docker exec -it payment php artisan module:make-middleware {middleware} {MODULE_NAME}
docker exec -it payment php artisan module:make-listener {listener} {MODULE_NAME}
docker exec -it payment php artisan module:make-rule {rule} {MODULE_NAME}
docker exec -it payment php artisan module:make-resource {resource} {MODULE_NAME}
  1. Status {PROJECT_DIR}/modules_statuses.json
{
    "Auth": true,
    "Hostbill": true,
    "HomePage": true
}

[!NOTE] Please take note of this