You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-9
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@
27
27
*[Reading list](#reading-list)
28
28
-[Example List API](#example-list-api)
29
29
-[File uploads](#file-uploads)
30
-
-[Helpful commands for local development without docker-compose](#helpful-commands-for-local-development-without-docker-compose)
31
-
-[Helpful commands for local development with docker-compose](#helpful-commands-for-local-development-with-docker-compose)
30
+
-[Helpful commands for local development without `dockercompose`](#helpful-commands-for-local-development-without-docker-compose)
31
+
-[Helpful commands for local development with `dockercompose`](#helpful-commands-for-local-development-with-docker-compose)
32
32
-[Deployment](#deployment)
33
33
*[Heroku](#heroku)
34
34
*[Render](#render)
@@ -46,7 +46,7 @@ The structure is inspired by [cookiecutter-django](https://github.com/pydanny/co
46
46
Few important things:
47
47
48
48
- Linux / Ubuntu is our primary OS and things are tested for that.
49
-
- It's dockerized for local development with `docker-compose`.
49
+
- It's dockerized for local development with `dockercompose`.
50
50
- It uses Postgres as the primary database.
51
51
- It comes with [`whitenoise`](http://whitenoise.evans.io/en/stable/) setup, even for local development.
52
52
- It comes with [`mypy`](https://mypy.readthedocs.io/en/stable/) configured, using both <https://github.com/typeddjango/django-stubs> and <https://github.com/typeddjango/djangorestframework-stubs/>
@@ -56,6 +56,7 @@ Few important things:
56
56
- It comes with GitHub Actions support, [based on that article](https://hacksoft.io/github-actions-in-action-setting-up-django-and-postgres/)
57
57
- It can be easily deployed to Heroku, Render or AWS ECS.
58
58
- It comes with an example list API, that uses [`django-filter`](https://django-filter.readthedocs.io/en/stable/) for filtering & pagination from DRF.
59
+
- It comes with setup for [Django Debug Toolbar](https://django-debug-toolbar.readthedocs.io/en/latest/)
59
60
- It comes with examples for writing tests with fakes & factories, based on the following articles - <https://www.hacksoft.io/blog/improve-your-tests-django-fakes-and-factories>, <https://www.hacksoft.io/blog/improve-your-tests-django-fakes-and-factories-advanced-usage>
60
61
61
62
## General API Stuff
@@ -249,7 +250,7 @@ Currently, the following is supported:
249
250
250
251
Feel free to use this as the basis of your file upload needs.
251
252
252
-
## Helpful commands for local development without docker-compose
253
+
## Helpful commands for local development without `dockercompose`
253
254
254
255
To create Postgres database:
255
256
@@ -275,24 +276,24 @@ To start Celery Beat:
275
276
celery -A styleguide_example.tasks beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
276
277
```
277
278
278
-
## Helpful commands for local development with docker-compose
279
+
## Helpful commands for local development with `dockercompose`
279
280
280
281
To build and run everything
281
282
282
283
```
283
-
docker-compose up
284
+
dockercompose up
284
285
```
285
286
286
287
To run migrations
287
288
288
289
```
289
-
docker-compose run django python manage.py migrate
290
+
dockercompose run django python manage.py migrate
290
291
```
291
292
292
293
To shell
293
294
294
295
```
295
-
docker-compose run django python manage.py shell
296
+
dockercompose run django python manage.py shell
296
297
```
297
298
298
299
## Deployment
@@ -413,4 +414,4 @@ build:
413
414
In order to test if your local setup is up to date, you can either:
414
415
415
416
1. Try making a commit, to see if `pre-commit` is going to be triggered.
416
-
1. Or run `black --check .` and `isort --check .` in the project root directory.
417
+
1. Or run `black --check .` and `isort --check .` in the project root directory.
0 commit comments