Skip to content

brunocaramelo/task-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TASK DASHBOARD APPLICATION

Quality Certification Seals

Codacy Badge

Codacy Badge

Technical Specifications

This application has the following specifications:

Tool Version
Docker 28.1.1
Docker Compose 2.32.4
FRANKENPHP (WEBSERVER) 8.3.9
PHP 8.3.9
Postgre 15.3
Sqlite (Unit Tests) 3.46.1
Laravel Framework 10.10
Laravel Reverb 1.5
Laravel Echo 2.1.4
Vue 3 3.4.0
Prime Vue 3.53.1
Tailwindcss 3.2.1

The application is separated into the following containers

Service Image Motivation
postgres postgres:15 Main database
php php-app Main Application (Web)
websocket-server php-cli CLI Application running Reverb Websocket
webserver and Vue 3 dunglas/frankenphp:1.1.3-php8.3 Web Server

Requirements

- Docker
- Docker Daemon (Service)
- Docker Compose

Installation procedures

Procedures for installing the application for local use

1- Download repository - git clone https://github.com/brunocaramelo/task-dashboard.git

    we must copy env files with commands below:

    - cp .env.docker-compose.example .env
    - cp docker/docker-compose-env/application.env.example docker/docker-compose-env/application.env
    - cp docker/docker-compose-env/ws-application.env.example docker/docker-compose-env/ws-application.env
    - cp docker/docker-compose-env/database.env.example docker/docker-compose-env/database.env

2 - Check that the ports:

- 80 (webserver) 

- 6380 (redis) 

- 9000(php-fpm)

- 5432(postgres) 

- 8182(websocket) 

 are busy.

3 - Enter the application's home directory and run the following commands:

1 - docker compose up (to see the logs on stdout);

### Description of steps (in case of problems)

1 - for the images to be stored and executed and upload the instances
    
    (NOTE) - due to composer's delay in bringing up the dependencies, there are 3 alternatives,
    
        1 - RUN sudo docker compose up; without being a daemon the first time, so that you can check the progress of the installation of dependencies.
        
        2 - Wait 20 minutes or so for the command to be executed, to avoid autoloading for example.
        
        
2 - for the framework to generate and apply the mapping for the database (SQL), which can be PostGres or SQLITE.

3 - for the framework to apply changes to the database data, in the case of inserting a first user.

4 - generation of a hash key for use by the system as a validation key.

5 - for the framework to run the test suite.
    - Feature tests  
    - Unit tests

Post Installation

After installation, the access address is:

Users Credentials

E-mail Name Password
admin@test.com Admin password
coworker@test.com Coworker password
stakeholder@test.com Stakeholder password

Tecnical Details

- Laravel 10 (Framework Backend)

- Postgre 15 (Database)

- Vue 3 (Framework Frontend)

- Pest (Test Suite)

- Redis (Cache and Websocket)

- Laravel Echo (Broadcast Client)

- Reverb (Websocket)

- SOLID

- Unit Tests and Feature Tests

- Docker and docker-compose

Extra

If you want to run the project locally, just run 

1 - cp .env.local.example .env
2 - If you don't have Postgre Running on local or remote : change on .env to DB_HOST=database and run (2.1). Or else, run (2.2) and change DB_* credentials
    2.1 - docker compose up -d cache database
    2.2 - docker compose up -d cache
3 - composer install
4 - php artisan reverb:start --debug
5 - php artisan serve
6 - npm run dev OR npm run build
7 - php artisan migrate && php artisan db:seed
8 - and check out http://localhost:8000
9 - php artisan test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors