Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend Test Project - Daniel Carlos #44

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1f6a00a
docker development environment
DanielCarlos-hub Nov 21, 2022
c06aaad
Laravel 9 installation
DanielCarlos-hub Nov 21, 2022
933eb0c
Create models and migrations
DanielCarlos-hub Nov 21, 2022
99c9f1e
CRUD Person
DanielCarlos-hub Nov 21, 2022
95542f6
CRUD Investment and some investment business logic
DanielCarlos-hub Nov 21, 2022
15b4dd7
Separate investiment business logic in service class
DanielCarlos-hub Nov 21, 2022
76f4427
Investment movements
DanielCarlos-hub Nov 21, 2022
6dd6fa2
fix display of expected_value field
DanielCarlos-hub Nov 21, 2022
0c647a1
Investment withdrawn initial logic
DanielCarlos-hub Nov 22, 2022
0e7bd67
Add new field to Investment Movements
DanielCarlos-hub Nov 22, 2022
c94e000
Investment withdrawn complete
DanielCarlos-hub Nov 22, 2022
bb7d906
Checks if the investment has been already withdrawn
DanielCarlos-hub Nov 22, 2022
7795af2
Send e-mail feature when withdrawn occurs
DanielCarlos-hub Nov 22, 2022
1be3887
minor changes
DanielCarlos-hub Nov 22, 2022
7e35c12
add investment data to investment movements endpoint
DanielCarlos-hub Nov 22, 2022
69e025d
add useful links to api resource
DanielCarlos-hub Nov 22, 2022
097ee5e
Person's investments endpoint
DanielCarlos-hub Nov 22, 2022
60ab958
change response status when update
DanielCarlos-hub Nov 22, 2022
3af2a4c
add endpoints tests
DanielCarlos-hub Nov 22, 2022
2e82a54
change URL on app config file
DanielCarlos-hub Nov 22, 2022
ae632be
add api welcome message on root route
DanielCarlos-hub Nov 22, 2022
4dd0076
add scribe api documentation
DanielCarlos-hub Nov 22, 2022
93c7413
update README with instructions how to run project
DanielCarlos-hub Nov 22, 2022
2d86226
remove faker from tests
DanielCarlos-hub Nov 22, 2022
2eb2682
mailtrap configuration
DanielCarlos-hub Nov 23, 2022
8d25ba2
fix view file path
DanielCarlos-hub Nov 23, 2022
46fd8b7
remove movements relation load after update
DanielCarlos-hub Nov 23, 2022
88534b0
execute dispatch job before commit transaction
DanielCarlos-hub Nov 23, 2022
d0f122a
Add field movement_at to api resource
DanielCarlos-hub Nov 23, 2022
8c61cdd
add and fix faker in tests
DanielCarlos-hub Nov 23, 2022
dd28687
remove redis install and container from docker-compose
DanielCarlos-hub Nov 23, 2022
ca0aa04
add fake Queue to withdrawn test
DanielCarlos-hub Nov 23, 2022
4c9aba9
fixes some words in the README
DanielCarlos-hub Nov 23, 2022
1aa7819
Postman endpoints collection
DanielCarlos-hub Nov 23, 2022
4d87265
move .gitignore inside mysql data folder
DanielCarlos-hub Nov 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
APP_NAME="Coderockr - Investments"
APP_URL=http://localhost:8100
APP_KEY=base64:8D2NLjpqQR9M/idnDWQ0ek211RxEtFu/WXS3xbW6Utg=
APP_ENV=local
APP_DEBUG=true

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=coderockr_test
DB_USERNAME=root
DB_PASSWORD=root

LOG_CHANNEL=stack
LOG_LEVEL=debug

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=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_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=587
MAIL_USERNAME=ed4cb9f43eef2e
MAIL_PASSWORD=e64e2ccd26fb90
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="${APP_NAME}"
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .scribe/.filehashes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# GENERATED. YOU SHOULDN'T MODIFY OR DELETE THIS FILE.
# Scribe uses this file to know when you change something manually in your docs.
.scribe/intro.md=8ea5caf6ea5f588fbcc585420a89e4ff
.scribe/auth.md=9bee2b1ef8a238b2e58613fa636d5f39
3 changes: 3 additions & 0 deletions .scribe/auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Authenticating requests

This API is not authenticated.
Loading