DaangnMarket clone project :)
<project-root>/secrets.json
Show Sample
{
"base": {
"HOST": "13.125.217.34",
"SENTRY_DSN": "<SENTRY dsn>",
"SECRET_KEY": "<SENTRY key>"
},
"dev": {
"DATABASES": {
"default": {
"ENGINE": "django.contrib.gis.db.backends.postgis",
"NAME": "db_daangn",
"USER": "jam",
"HOST": "localhost"
}
}
},
"production": {
"DATABASES": {
"default": {
"ENGINE": "django.contrib.gis.db.backends.postgis",
"NAME": "<RDS db_name>",
"USER": "<RDS db_user>",
"PASSWORD": "<RDS db_password>",
"HOST": "<RDS Host URI>",
"PORT": 5432
}
},
"AWS_IAM_S3": {
"AWS_ACCESS_KEY_ID": "<AWS AccessKeyID (S3 permission)>",
"AWS_SECRET_ACCESS_KEY": "<AWS SecretAccessKey (S3 permission)>",
"AWS_STORAGE_BUCKET_NAME": "<AWS Bucket Name>"
}
}
}
$ pip install firebase-admin
<project-root>/serviceAccountKey.json
Show requirements
// on mac
$ brew install postgresql
$ brew install postgis
$ brew install gdal
$ brew install libgeoip
$ pip install -r requirements.txt
POSTGIS="2.5.2 r17328"
drf-yasg
: API description generatorsentry-sdk
: Error Trackingdjango-debug-toolbar
: Debuging helperdjango-extensions
: shell helper
poetry>=0.12
로 관리
Show list
[tool.poetry.dependencies]
python = "^3.7"
django = "^3.0.4"
djangorestframework = "^3.11.0"
django-filter = "^2.2.0"
markdown = "^3.2.1"
django-import-export = "^2.0.2"
psycopg2-binary = "^2.8.4"
Pillow = "^7.0.0"
requests = "^2.23.0"
supervisor = "^4.1.0"
gunicorn = "^20.0.4"
drf-yasg = "^1.17.1"
sentry-sdk = "^0.14.3"
ssv = "^0.1.1"
flex = "^6.14.1"
firebase-admin = "^4.0.0"
django-cors-headers = "^3.2.1"
django-push-notifications = "^2.0.0"
django-storages = "^1.9.1"
boto3 = "^1.12.39"
[tool.poetry.dev-dependencies]
django-debug-toolbar = "^2.2"
django-extensions = "^2.2.9"
$ <project-root>/deploy.py