Skip to content

Commit c511ee9

Browse files
committed
Update roadmap
1 parent e6dd746 commit c511ee9

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ http://127.0.0.1:8000/
1111

1212
http://127.0.0.1:8000/admin
1313

14-
1514
- 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/
1717
http://127.0.0.1:8000/inventoryItems/?user_id=5
1818

1919
- save database
@@ -24,6 +24,7 @@ postgres > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql
2424
```
2525

2626
### Dev Notes
27+
2728
To avoid wiping your local db every time you rebuild, make sure the migrate lines are commented out in entrypoint.sh.
2829

2930
## Roadmap
@@ -34,13 +35,11 @@ To avoid wiping your local db every time you rebuild, make sure the migrate line
3435

3536
### Nice to have
3637

37-
- recipes have uuids why
38+
- style improves
3839
- if quantity 0, remove expiration and sort last
39-
- recipes by ingredient
4040
- fix test connection
4141
- separate recipe app
4242
- separate user app
43-
- recipe
4443
- rds
4544
- i don't like ingredients as their own model but maybe i need it
4645
- why "ingredientSet"
@@ -62,4 +61,20 @@ https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
6261

6362
https://dev.to/ki3ani/deploying-your-first-dockerized-django-rest-api-on-aws-elastic-beanstalk-a-comprehensive-guide-2m77
6463

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;`

0 commit comments

Comments
 (0)