Skip to content

Development of an application to create posts and comments

License

Notifications You must be signed in to change notification settings

Weavous/LaraVuePost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel application made with with 👉Docker👈

License Languages Last Commit Followers

Clone the repository

    git clone https://github.com/Weavous/LaraVuePost

Copy the environment variables example file

    cp backend/.env.example backend/.env

After clone the repository, configure the environment variables

    DB_CONNECTION=mysql
    DB_HOST=laravuepost_mysql_1
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=root
    DB_PASSWORD=secret

Now you have to build the image from Docker image

    docker-compose up -d --build

Install Laravel dependencies

    docker-compose run --rm composer install

Run Laravel migrations/seeders

    docker-compose run --rm artisan migrate:fresh --seed

Create an Laravel application key

    docker-compose run --rm artisan key:generate

Run Laravel tests

    docker-compose run --rm artisan test

Inside Browser Directory, Start Vue application

    npm run dev

You can open Laravel application in localhost:8080

You can open Vue application in localhost:8081

Topics

🚀 Docker

If necessary, you can remove all images using docker system prune -a --volumes

Questions

Any questions or suggestions regarding the project, please contact me on 📧 [email protected]

About

Development of an application to create posts and comments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published