diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..0fb2c3f20 Binary files /dev/null and b/.DS_Store differ diff --git a/laravel/.DS_Store b/laravel/.DS_Store new file mode 100644 index 000000000..dedf490e3 Binary files /dev/null and b/laravel/.DS_Store differ diff --git a/laravel/.editorconfig b/laravel/.editorconfig new file mode 100644 index 000000000..1938b93e6 --- /dev/null +++ b/laravel/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 \ No newline at end of file diff --git a/laravel/.env.example b/laravel/.env.example new file mode 100644 index 000000000..30063a697 --- /dev/null +++ b/laravel/.env.example @@ -0,0 +1,58 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" \ No newline at end of file diff --git a/laravel/.gitattributes b/laravel/.gitattributes new file mode 100644 index 000000000..63849f372 --- /dev/null +++ b/laravel/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore \ No newline at end of file diff --git a/laravel/.gitignore b/laravel/.gitignore new file mode 100644 index 000000000..99b763893 --- /dev/null +++ b/laravel/.gitignore @@ -0,0 +1,18 @@ +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode \ No newline at end of file diff --git a/laravel/.styleci.yml b/laravel/.styleci.yml new file mode 100644 index 000000000..5a80259d4 --- /dev/null +++ b/laravel/.styleci.yml @@ -0,0 +1,9 @@ +php: + preset: laravel + disabled: + - no_unused_imports + finder: + not-name: + - index.php +js: true +css: true \ No newline at end of file diff --git a/laravel/README.md b/laravel/README.md new file mode 100644 index 000000000..16a9a8394 --- /dev/null +++ b/laravel/README.md @@ -0,0 +1,27 @@ +
+ +## Documentação API em Laravel + +Esta aplicação é responsável por realizar o controle de um investmento, sendo possível criar um investmento, sacar e visualizar. + +Bibliotecas e versões utilizadas nesse sistema: + +- "php": ^8.0.2, +- "laravel/framework": 9.19 + + +Abaixo segue o passo a passo para executar o projeto e realizar os testes + +### Passo a Passo + +- Realizar o download do repositório +- Abrir o CMD no diretório root do projeto e executar "composer update" +- Executar comando para criar o .env e "application key" no .env "cp .env.example .env" e em seguida "php artisan key:generate" +- Atualizar as informações do arquivo .env com a sua conexão de banco de dados +- Executar os migrations para o sistema criar a base de dados "php artisan migrate" +- Iniciar o ambiente de desenvolvimento do laravel "php artisan serve" + +#### Rotas e Funcionalidades + +- Documentação das Rotas: + - https://documenter.getpostman.com/view/9534004/2s8YsqUuEy diff --git a/laravel/app/.DS_Store b/laravel/app/.DS_Store new file mode 100644 index 000000000..73e06e1a7 Binary files /dev/null and b/laravel/app/.DS_Store differ diff --git a/laravel/app/Console/Kernel.php b/laravel/app/Console/Kernel.php new file mode 100644 index 000000000..d8bc1d29f --- /dev/null +++ b/laravel/app/Console/Kernel.php @@ -0,0 +1,32 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/laravel/app/Exceptions/Handler.php b/laravel/app/Exceptions/Handler.php new file mode 100644 index 000000000..b161f1c74 --- /dev/null +++ b/laravel/app/Exceptions/Handler.php @@ -0,0 +1,53 @@ +, \Psr\Log\LogLevel::*> + */ + protected $levels = [ + // + ]; + + /** + * A list of the exception types that are not reported. + * + * @var array