/weather-index-with-docker-apache-laravel-mysql-vuejs

Weather app reader. Data from WeatherApi. Built with Laravel, vuejs, docker, MySQL

Primary LanguagePHP

The Weather Index

Weather information for a set of users.

Tech Stack

  • Docker
  • Laravel
  • Vue JS
  • MySQL

To run the local dev environment:

API

  • Navigate to /api folder
  • Ensure version docker installed is active on host
  • Copy .env.example: cp .env.example .env
  • Start docker containers docker compose up (add -d to run detached)
  • Connect to container to run commands: docker exec -it fullstack-challenge-app-1 bash
    • Make sure you are in the /var/www/html path
    • Install php dependencies: composer install
    • Setup app key: php artisan key:generate
    • Migrate database: php artisan migrate
    • Seed database: php artisan db:seed
    • Run tests: php artisan test
  • Visit api: http://localhost

Frontend

  • Navigate to /frontend folder
  • Ensure nodejs v18 is active on host
  • Install javascript dependencies: npm install
  • Run frontend: npm run dev
  • Visit frontend: http://localhost:5173