Skip to content
This repository has been archived by the owner on Feb 19, 2018. It is now read-only.

cozy-nyc/cozy-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exchange

Requirements

Stack

  • Postgres
  • Django
  • Pytest for python testing

Setup and customize

  1. Edit the environement variables touch .env
  2. Create env/dev with the following values filled
DEBUG=true
SECRET_KEY=[secret-key]
DJANGO_SETTINGS_MODULE=django_config.settings.local
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
DATABASE_URL=postgres://dev:tester321@localhost:5432/cozyexchange

MAILGUN_API_KEY=[mailgun-api-key]
MAILGUN_DEFAULT_FROM_EMAIL=[email]

POSTGRES_PASSWORD=tester321
POSTGRES_USER=dev
POSTGRES_DB=exchange

EMAIL_USE_TLS=True
EMAIL_PORT=587
EMAIL_HOST=smtp.domain.com
[email protected]
EMAIL_HOST_PASSWORD=password
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
[email protected]

Finally, build and start the docker containers:

./bin/develop

Run Django commands

./bin/django [command]
./bin/django createsuperuser
./bin/django makemigrations [app_name]

Releases

No releases published

Packages

No packages published