KKlochko
962b423d0d
Add tests for the addItem method, that add an item to a Cart.
continuous-integration/drone/push Build is passing
2023-06-19 20:32:11 +03:00
KKlochko
7636ae4715
Fix Cart.getItem() method.
2023-06-19 20:31:02 +03:00
KKlochko
fd4a4bf5ea
Add the addItem method, that add an item to a Cart, and its route.
2023-06-19 20:24:14 +03:00
KKlochko
6bb99c7f70
Add the clone method for Item model.
continuous-integration/drone/push Build is passing
2023-06-19 18:13:35 +03:00
KKlochko
ada0abd69d
Add the count field to Item model.
2023-06-19 18:12:57 +03:00
KKlochko
563254c725
Add getItem to Cart model.
2023-06-19 18:11:28 +03:00
KKlochko
e91b808a0f
Add a method to check that an item in a cart.
2023-06-19 18:10:54 +03:00
KKlochko
73b45084b7
Refactor the Cart method names.
2023-06-19 18:08:34 +03:00
KKlochko
23b0f0477a
Update the index page for companies to show using the User data.
continuous-integration/drone/push Build is passing
2023-06-19 15:51:57 +03:00
KKlochko
57dd0c1660
Update the index page for categories to show company's categories.
2023-06-19 15:50:30 +03:00
KKlochko
3daf18f5c3
Add CategotyItemAPI, ItemAPI to get items from DotsAPI.
2023-06-19 15:36:12 +03:00
KKlochko
5d0c12fac1
Add parent as an argument to the saveMap method for DotsAPI classes.
2023-06-19 15:34:10 +03:00
KKlochko
6e8a34112a
Add tests for the Item.isBelong method.
continuous-integration/drone/push Build is passing
2023-06-19 15:32:31 +03:00
KKlochko
a7dbea1d79
Add getCategory, getCompany, isBelong methods to Item model.
2023-06-19 15:31:33 +03:00
KKlochko
751921e83f
Add tests for the Item validations.
continuous-integration/drone/push Build is passing
2023-06-19 15:11:21 +03:00
KKlochko
aedb4d5949
Add the validation for Item that returns message for requests.
2023-06-19 15:10:47 +03:00
KKlochko
65fa84344e
Update CategoryResource to show items of categories.
2023-06-19 15:06:23 +03:00
KKlochko
3eff14173b
Add getters to Cart model to get its City or Company.
2023-06-19 15:05:37 +03:00
KKlochko
e0ec4f1efa
Add foreign keys to field in Category, Item models.
2023-06-19 15:04:02 +03:00
KKlochko
90edc9bdf4
Add tests for the selectCompany method.
continuous-integration/drone/push Build is passing
2023-06-18 18:49:15 +03:00
KKlochko
b3d7815f59
Add the selectCompany method and its route.
2023-06-18 18:48:12 +03:00
KKlochko
399eab4cad
Refactor the name for the test to select another city in CartTest.
2023-06-18 18:45:57 +03:00
KKlochko
3fe7287e06
Refactor the Cart model.
...
Moved the dropItems above its first usage.
2023-06-18 18:42:40 +03:00
KKlochko
d90f017cbe
Add the getItemIds in the Cart to get ids of items.
2023-06-18 18:41:14 +03:00
KKlochko
a8559a52c6
Add the setCompany method in the Cart model.
2023-06-18 18:34:19 +03:00
KKlochko
8cdd2f2bbe
Add tests for the Company validations.
2023-06-18 18:32:58 +03:00
KKlochko
65280168a4
Update CartTest to remove the temporary cart.
continuous-integration/drone/push Build is passing
2023-06-18 17:41:12 +03:00
KKlochko
b71073d81d
Update the CompanySeeder to have a second company.
2023-06-18 17:38:58 +03:00
KKlochko
fd4a37c36a
Add the validation for Company that returns message for requests.
2023-06-18 17:37:14 +03:00
KKlochko
76f6c699aa
Fix the method, isEmpty, in the Cart model.
2023-06-18 17:35:09 +03:00
KKlochko
0c2f6355cf
Add methods to add and remove Items from a Cart.
2023-06-18 17:34:23 +03:00
KKlochko
e4f003f074
Add the route for the select city action.
continuous-integration/drone/push Build is failing
2023-06-18 16:39:18 +03:00
KKlochko
c0bfcd07c7
Add CartController, the selectCity method and its test.
continuous-integration/drone/push Build is failing
2023-06-18 16:34:25 +03:00
KKlochko
9d6a64d919
Add tests for the City and User validations.
continuous-integration/drone/push Build is passing
2023-06-18 16:21:29 +03:00
KKlochko
2d4fb6a59b
Add the validation for City, User that returns message for requests.
2023-06-18 16:17:35 +03:00
KKlochko
814eb18028
Update the setCity method in the Cart model.
2023-06-18 16:15:22 +03:00
KKlochko
33e35fa692
Update the CitySeeder to have a second city.
2023-06-18 16:12:47 +03:00
KKlochko
3fd0d3bce8
Add execution seeders to the migrations in the CI/CD configuration.
2023-06-18 16:09:50 +03:00
KKlochko
d4f3072169
Add test models to the seeders.
continuous-integration/drone/push Build is passing
2023-06-18 11:26:01 +03:00
KKlochko
0430a2bed1
Update the factories for City and User models.
2023-06-18 11:25:07 +03:00
KKlochko
07a5ec44cc
Update Company and Item models to have image as nullable field.
2023-06-18 11:23:57 +03:00
KKlochko
70f2173976
Add the CI/CD configuration.
continuous-integration/drone/push Build is passing
2023-06-17 15:16:29 +03:00
KKlochko
232145d9a7
Update .env.example to have the test information.
2023-06-17 15:09:08 +03:00
KKlochko
eb1f8bd4ff
Fix user login function.
...
Check for not existing user was without NOT.
2023-06-17 14:25:20 +03:00
KKlochko
35c3e318c7
Update UserTest to add login tests and a better structure.
2023-06-17 14:24:13 +03:00
KKlochko
17b76707b3
Add UserController to register/login users and api, register tests.
2023-06-16 17:59:52 +03:00
KKlochko
ea120c8c9c
Update User, Cart models.
...
Added isEmpty (no items), setCity, dropItems to Cart.
The cart field, company, was made nullable.
Updated the user field from name to username and made it unique.
2023-06-16 16:50:12 +03:00
KKlochko
4a4d5e7335
Add Cart model, resource and its API, Pivot table with Items.
...
Update Items model to have relationship with cart.
2023-06-15 17:43:59 +03:00
KKlochko
ea363b956e
Update User class.
...
Added the needed fields and removed unused fields.
2023-06-15 17:43:59 +03:00
KKlochko
61a374dfc7
Fix CityAPI to have same arguments for getMap method as Abstract.
2023-06-15 17:19:38 +03:00
KKlochko
88cc3459d3
Update City, Company Controllers to fetch new data.
...
Cleared CityResource from a comment.
2023-06-14 17:50:05 +03:00
KKlochko
814b56ca3d
Added City, Company to get and save data from API.
2023-06-14 17:48:24 +03:00
KKlochko
87483cce4e
Added ApiFetcher to fetch data from DotsAPI.
2023-06-14 17:46:04 +03:00
KKlochko
18bd849827
Added Item model, resource and its API.
...
Updated Category model to have Items.
2023-06-14 17:16:50 +03:00
KKlochko
b5a264d92f
Added Category model, resource and its API.
...
Updated Company model to have Categories.
2023-06-14 16:58:35 +03:00
KKlochko
505fa2e831
Updated guzzlehttp/guzzle library.
2023-06-14 16:35:29 +03:00
KKlochko
2dc7893eb3
Added Company model, resource and its API.
2023-06-14 16:28:48 +03:00
KKlochko
49f7f06e66
Added Dots Platform API Configuration.
2023-06-14 13:46:56 +03:00
KKlochko
1dcf619555
Updated City Model and Resource.
2023-06-14 13:36:40 +03:00
KKlochko
6d0423fa34
Added City model, resource and its API.
2023-06-14 13:31:38 +03:00
KKlochko
15f16db37c
Project initialization.
2023-06-13 17:59:00 +03:00