-
🔭 I am currently working on Back-end project development
-
🌱 I'm currently learning Software Architecture and Engineering
-
📫 How to reach me [email protected]
I ended up getting excited and developing, even after the delivery date.
##Admin user Email : [email protected] Password: senha
- Installing Project
Click here: https://youtu.be/nhZv94lVTtA
-
Clone the repository: git clone [email protected]:RamonSouzaDev/banking.git
-
Enter the project folder cd "banking"
Running using docker
-
Run the commands to upload the backend environment cd "backend-banking" in the terminal run the command : docker compose up --build
-
Run the commands to upload the frontend environment cd "frontend-banking" in the terminal run the command : docker compose up --build
-
Open a third tab in your terminal and run the command Execute this command inside folder "backend-banking" to generate librarys and generete composer to laravel ./start-backend.sh
Backend Unit Tests 💡
- Enter the backend container and run the command ./vendor/bin/phpunit --coverage-html coverage
Frontend Unit Tests 💡
- Enter the frontend container and run the command npm run test:unit
Seeders Run the commands below to generate data
- php artisan db:seed --class=UserSeeder
- php artisan db:seed --class=TransactionsTableSeeder
- php artisan db seed --class=CheckDepositsTableSeeder
- php artisan db seed --class=AccountBalanceSeeder
-
URL 🏁🏁🏁 http://localhost:8080/
-
Routes
Note: Remember to add the Bearer Token of the logged in user in the request, if you are using Postman. 👍
Method | Route | Description |
---|---|---|
POST |
/api/login | Route to login |
POST |
/api/register | Route to register a user |
POST |
/api/logout | Route to logout |
Method | Route | Description |
---|---|---|
POST |
/api/deposit | Route to make a deposit |
POST |
/api/purchase | Route to make a purchase |
GET |
/api/transactions | Route to list all transactions |
GET |
/api/checks | Route to list all checks |
GET |
/api/incomes | Route to list all incomes |
GET |
/api/expenses | Route to list all expenses by month |
Method | Route | Description |
---|---|---|
GET |
/api/admin/check-deposits/pending | Route to list pending deposits |
POST |
/api/check-deposit/approve/{checkDeposit} | Route to approve a check deposit |
POST |
/api/check-deposit/deny/{checkDeposit} | Route to deny a check deposit |
Method | Route | Description |
---|---|---|
GET |
/api/balance | Route to get current balance |
Method | Route | Description |
---|---|---|
GET |
/api/users | Route to list all users |
GET |
/api/users/{user} | Route to display details of a specific user |
PUT |
/api/users/{user} | Route to update a user |
DELETE |
/api/users/{user} | Route to delete a user |
GET |
/api/user | Route to get logged-in user information |
GET |
/api/user-details/{userId}/{checkId} | Route to get user check details |
Method | Route | Description |
---|---|---|
POST |
/login | Legacy route to login |
GET |
/logout | Legacy route to logout |