Giter Club home page Giter Club logo

dj-rcp's Introduction

Ratings Central Publisher

Dotenv

  • Copy example.env to .env:
    • cp example.env .env
  • Settings which will likely need to be set manually:
    • For both:
      • DJANGO_SETTINGS_MODULE - usually webapp.settings
      • ADMIN_USER
    • For Development:
      • DEBUG - set it to true
      • SITE_URL
    • For production:
      • DEBUG - set it to false
      • SECRET_KEY
      • SITE_URL
      • DEFAULT_FROM_EMAIL
      • AWS_STORAGE_BUCKET_NAME
      • DATABASE_URL
      • CELERY_BROKER_URL
      • MAILGUN_API_KEY
      • CELERY_TASK_DEFAULT_QUEUE
      • AXES_REDIS_URL
      • AXES_KEY_PREFIX
      • AXES_META_PRECEDENCE_ORDER
      • SENTRY_DSN
  • Important note: Docker Compose reads .env files poorly. You will need to remove the double quotes from around the values being assigned. For example,
    • replace: DJANGO_SETTINGS_MODULE="webapp.settings"
    • with: DJANGO_SETTINGS_MODULE=webapp.settings

Getting the project running for development

  • Ensure you have Docker, docker-compose on your system.
  • See the Dotenv section above and follow the steps
  • In the project folder, run make within the backend container:
    • docker-compose run --rm backend make install
  • Start the Docker containers
    • docker-compose up -d

Development

  • Be sure to maintain and regularly run the tests within the project.
    • docker-compose run --rm backend make test
  • Be sure to format all code before committing.
    • Ensure the pre-commit git hook is installed (within the environment from where git is run):
      • pre-commit install
    • Running git commit will now cause the pre-commit hook to run before committing is possible.

dj-rcp's People

Contributors

nattyg93 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.