https://github.com/joaomarr/photo_gallery
https://github.com/joaomarr/photo_gallery
aws-rds aws-s3 django django-graphql-jwt graphene-django graphql
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joaomarr/photo_gallery
- Owner: joaomarr
- Created: 2022-08-19T20:17:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T22:38:12.000Z (over 2 years ago)
- Last Synced: 2025-01-12T11:48:10.254Z (4 months ago)
- Topics: aws-rds, aws-s3, django, django-graphql-jwt, graphene-django, graphql
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django-starter
Boilerplate Django project## Getting started
1) Configure [Docker](https://docs.docker.com/)
2) Run Docker Compose: `docker-compose up`## Scripts
- **manage.sh**: Execute Django *manage.py* commands. E.g: `./scripts/manage.sh DJANGO_COMMAND`
## Docker Commands
Build and Run
- `docker-compose build --build-arg APP_ENVIROMENT="develop"`
- `docker-compose up`
- `docker-compose down`
- `docker exec -it IMAGE_ID sh`Exec commands in Services
- `docker-compose exec db psql --username={{username}} --dbname={{dbname}}`
- `docker-compose exec web python src/manage.py createsuperuser`## Django Commands
- `py.test`## Without Docker
```
- python3.8 -m venv venv
source venv/bin/activate
- python manage.py migrate
- python manage.py runserver
```## Links interessantes
- [Dockerizing Django](https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/)
- [Makefile Django](https://dev.to/xarala221/how-to-become-more-productive-using-makefile-579b/)