Skip to content

A simple and clean starter-kit to start a new SPA project. Its like Jetstream without Inertia but with Vue-Router and Pinia as store.

Notifications You must be signed in to change notification settings

somethink000/vue-laravel11-spa-auth-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshots

art/screenshot-home.png

art/screenshot-settings.png

Testing

PHPunit is ready setup to test the API side. Tested are all Sanctum and Fortify features cause there are heavily based on there original tests. Thats a good starting point to add tests for your next project. To run the tests you can call phpunit like this:

php artisan test

explaining

.env.prod for production with nginx php fpm nodejs servers / .env.develop for developing on sail

docker compose up //develop

docker compose -f ./docker-compose-prod.yml up //production

Run on local

composer install //install composer

cp .env.develop .env //copy your env

npm install

php artisan key:generate //generate key for your app

docker compose build

docker compose up

php artisan migrate:refresh

npm run dev

Deploy on production server

Clone your project on server

composer install //install composer

cp .env.prod .env //copy your env don't forget to insert domain ofyour server in env and database password

put your server adress in /docker/nginx/sites/laravel.conf //server_name [adress]

php artisan key:generate //generate key for your app

sudo npm install // nstall js packages

docker compose -f ./docker-compose-prod.yml build //build containers every time when you change something in yourproject

docker compose -f ./docker-compose-prod.yml start //start your app

docker ps //find your php fpm container and copy ID of this

sudo docker exec -it [container id] bash //jump into php-fpm container shell

chmod o-r www-data:www-data . //give permissions to user something like this

cd laravel/current/ // Open root directory

php artisan migrate:refresh // Run migrations

read a prayer

open your app

License

The Laravel framework is open-sourced software licensed under the MIT license.
The Vue framework is open-sourced software licensed under the MIT license.
This repository is open-sourced software licensed under the MIT license.

About

A simple and clean starter-kit to start a new SPA project. Its like Jetstream without Inertia but with Vue-Router and Pinia as store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 60.4%
  • Vue 25.5%
  • Dockerfile 6.7%
  • JavaScript 3.5%
  • Shell 2.8%
  • Blade 1.1%