Skip to content

rozimuhammadweb/docker-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing the Project using Docker

Setup Steps

  1. Clone the repository:

    git clone git@github.com:rozimuhmmadweb/docker-spa.git
  2. Navigate into the directory:

    cd docker-spa
  3. Build Docker environment:

    make build
  4. Start the Docker containers:

    make start
  5. Install PHP:

    make composer-install
  6. Install Node.js:

    make npm-install

Running & Building

  • Run frontend dev server:

    make npm-serve
    • Note: Run this command when you are actively developing the frontend. It is output a network address (e.g., Network: http://172.21.0.2:8080/). Open this address in your browser.
    • (Remember: 172.21.0.2 might be the container's internal IP. You might need to access it via http://localhost:8080 or similar, depending on port mapping.)
  • Build the frontend for production:

    make npm-build
    • This compiles the frontend assets into the /dist folder, ready for deployment(production).

Container Shells

  • PHP container shell:

    make php-sh
  • Frontend container shell:

    make frontend-ssh 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors