File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ http://127.0.0.1:8000/
11
11
12
12
http://127.0.0.1:8000/admin
13
13
14
-
15
14
- get items by user
16
- - https://www.django-rest-framework.org/api-guide/filtering/
15
+
16
+ - https://www.django-rest-framework.org/api-guide/filtering/
17
17
http://127.0.0.1:8000/inventoryItems/?user_id=5
18
18
19
19
- save database
@@ -24,6 +24,7 @@ postgres > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql
24
24
```
25
25
26
26
### Dev Notes
27
+
27
28
To avoid wiping your local db every time you rebuild, make sure the migrate lines are commented out in entrypoint.sh.
28
29
29
30
## Roadmap
@@ -34,13 +35,11 @@ To avoid wiping your local db every time you rebuild, make sure the migrate line
34
35
35
36
### Nice to have
36
37
37
- - recipes have uuids why
38
+ - style improves
38
39
- if quantity 0, remove expiration and sort last
39
- - recipes by ingredient
40
40
- fix test connection
41
41
- separate recipe app
42
42
- separate user app
43
- - recipe
44
43
- rds
45
44
- i don't like ingredients as their own model but maybe i need it
46
45
- why "ingredientSet"
@@ -62,4 +61,20 @@ https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
62
61
63
62
https://dev.to/ki3ani/deploying-your-first-dockerized-django-rest-api-on-aws-elastic-beanstalk-a-comprehensive-guide-2m77
64
63
65
- https://www.udemy.com/course/django-python-advanced/
64
+ https://www.udemy.com/course/django-python-advanced/
65
+
66
+ ## Troubleshooting
67
+
68
+ ### Data
69
+
70
+ Get into the container:
71
+ ` docker exec -ti hord_db bash `
72
+
73
+ Connect to postgres:
74
+ ` psql -h localhost -p 5432 -d your_db_name -U your_db_user ` # varies by env
75
+
76
+ Show tables:
77
+ ` \dt `
78
+
79
+ See what's in the tables:
80
+ ` select * from one_of_the tables; `
You can’t perform that action at this time.
0 commit comments