Code Monkey home page Code Monkey logo

laravel-spa's Introduction

Laravel Single Page Application

Laravel single page application build with VUE & VuetifyJs features integrations:

Local deployment

# clone this repository
git clone https://github.com/markhilton/laravel-spa

# go into the project
cd laravel-spa

# create a .env file
cp .env.example .env

# generate a key for your application & JWT server secret
php artisan key:generate
php artisan jwt:secret

# deploy stack with docker compose
docker-compose up

give it some time after first, initial deployment for Composer and NPM to download all required vendor libraries and packages. The node container will watch for file changes as you work with VUE components and automatically mix app.js, app.css files as needed and create new mix-manifest.json.

You can watch progress on docker-compose log output.

Production deployment

I work with Google Cloud GKE and usually leverage Google Cloud Build to automatically build my app images when the code is pushed to repository and tagged, so I share my cloudbuild.yaml here too and can post integration instructions if anybody asks.

I will add my Helm chart for Kubernetes deployment soon.

Credits

Afik Deri, his repository which I forked and some great YouTube tutorials

FAQ

Why use own docker images instead Laradock?

I've build my own Nginx and PHP Docker containers because I wanted to have out of the box, full-blown images I can control just with environment variables without having to build them every time I start a new project. They are not light-weight, rather have all necessary PHP extensions or Nginx modules I ever needed.

Troubleshooting

Don't worry about Laravel route error during containers initialization.

LogicException  : Unable to prepare route [{any}] for serialization. Uses Closure.

laravel-spa's People

Contributors

markhilton avatar afik-d avatar afikderi avatar

Watchers

James Cloos 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.