Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

XPOL555/laranuxt-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This project is a dockerized version of Nuxt 2 and Laravel 6

Requirements

  1. Docker
  2. Base Knowledge of Laravel, Docker and Nuxt

Getting started

  1. Copy laravel's configuration file api/.env.local intoapi/.env
  2. Copy nuxt/.env.local intonuxt/.env
  3. Run docker-composer up or start services from the docker-compose.yml file (this may take up to 5 minutes for the first time)
  4. Run docker-compose exec php composer install
  5. Run docker-compose exec php artisan migrate --seed (change ADMIN_EMAIL, ADMIN_PASSWORD and ADMIN_USER in app/.env if you like)
  6. Run docker-compose exec php bash -c "php artisan migrate --seed" to init the laravel db and seeding the admin user
  7. Run docker-compose exec php bash -c "php artisan passport:keys" to create the passport keys files

That's it! Try to open http://laranuxt.localhost

Nuxt contains also

  1. Vue Apollo as module: https://github.com/nuxt-community/apollo-module for GraphQL Client
  2. Auth Nuxt module: https://auth.nuxtjs.org/ configured to work with laravel passport
  3. Uses Vuetify as frontend framework: https://vuetifyjs.com/en/

Laravel contains also

  1. GraphQL Lite https://graphqlite.thecodingmachine.io/docs/features.html
  2. Passport already configured and integrated with nuxt auth module

About

Dockerized Laravel 6 and NuxtJS 2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published