KKlochko
118b9bb74c
Add methods to City model to get, add, remove Companies by ids.
2 years ago
KKlochko
f7214205d8
Add Pivot table for the relationship between Cities and Companies.
2 years ago
KKlochko
962b423d0d
Add tests for the addItem method, that add an item to a Cart.
2 years ago
KKlochko
7636ae4715
Fix Cart.getItem() method.
2 years ago
KKlochko
fd4a4bf5ea
Add the addItem method, that add an item to a Cart, and its route.
2 years ago
KKlochko
6bb99c7f70
Add the clone method for Item model.
2 years ago
KKlochko
ada0abd69d
Add the count field to Item model.
2 years ago
KKlochko
563254c725
Add getItem to Cart model.
2 years ago
KKlochko
e91b808a0f
Add a method to check that an item in a cart.
2 years ago
KKlochko
73b45084b7
Refactor the Cart method names.
2 years ago
KKlochko
23b0f0477a
Update the index page for companies to show using the User data.
2 years ago
KKlochko
57dd0c1660
Update the index page for categories to show company's categories.
2 years ago
KKlochko
3daf18f5c3
Add CategotyItemAPI, ItemAPI to get items from DotsAPI.
2 years ago
KKlochko
5d0c12fac1
Add parent as an argument to the saveMap method for DotsAPI classes.
2 years ago
KKlochko
6e8a34112a
Add tests for the Item.isBelong method.
2 years ago
KKlochko
a7dbea1d79
Add getCategory, getCompany, isBelong methods to Item model.
2 years ago
KKlochko
751921e83f
Add tests for the Item validations.
2 years ago
KKlochko
aedb4d5949
Add the validation for Item that returns message for requests.
2 years ago
KKlochko
65fa84344e
Update CategoryResource to show items of categories.
2 years ago
KKlochko
3eff14173b
Add getters to Cart model to get its City or Company.
2 years ago
KKlochko
e0ec4f1efa
Add foreign keys to field in Category, Item models.
2 years ago
KKlochko
90edc9bdf4
Add tests for the selectCompany method.
2 years ago
KKlochko
b3d7815f59
Add the selectCompany method and its route.
2 years ago
KKlochko
399eab4cad
Refactor the name for the test to select another city in CartTest.
2 years ago
KKlochko
3fe7287e06
Refactor the Cart model.
...
Moved the dropItems above its first usage.
2 years ago
KKlochko
d90f017cbe
Add the getItemIds in the Cart to get ids of items.
2 years ago
KKlochko
a8559a52c6
Add the setCompany method in the Cart model.
2 years ago
KKlochko
8cdd2f2bbe
Add tests for the Company validations.
2 years ago
KKlochko
65280168a4
Update CartTest to remove the temporary cart.
2 years ago
KKlochko
b71073d81d
Update the CompanySeeder to have a second company.
2 years ago
KKlochko
fd4a37c36a
Add the validation for Company that returns message for requests.
2 years ago
KKlochko
76f6c699aa
Fix the method, isEmpty, in the Cart model.
2 years ago
KKlochko
0c2f6355cf
Add methods to add and remove Items from a Cart.
2 years ago
KKlochko
e4f003f074
Add the route for the select city action.
2 years ago
KKlochko
c0bfcd07c7
Add CartController, the selectCity method and its test.
2 years ago
KKlochko
9d6a64d919
Add tests for the City and User validations.
2 years ago
KKlochko
2d4fb6a59b
Add the validation for City, User that returns message for requests.
2 years ago
KKlochko
814eb18028
Update the setCity method in the Cart model.
2 years ago
KKlochko
33e35fa692
Update the CitySeeder to have a second city.
2 years ago
KKlochko
3fd0d3bce8
Add execution seeders to the migrations in the CI/CD configuration.
2 years ago
KKlochko
d4f3072169
Add test models to the seeders.
2 years ago
KKlochko
0430a2bed1
Update the factories for City and User models.
2 years ago
KKlochko
07a5ec44cc
Update Company and Item models to have image as nullable field.
2 years ago
KKlochko
70f2173976
Add the CI/CD configuration.
2 years ago
KKlochko
232145d9a7
Update .env.example to have the test information.
2 years ago
KKlochko
eb1f8bd4ff
Fix user login function.
...
Check for not existing user was without NOT.
2 years ago
KKlochko
35c3e318c7
Update UserTest to add login tests and a better structure.
2 years ago
KKlochko
17b76707b3
Add UserController to register/login users and api, register tests.
2 years ago
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.
2 years ago
KKlochko
4a4d5e7335
Add Cart model, resource and its API, Pivot table with Items.
...
Update Items model to have relationship with cart.
2 years ago