Code Monkey home page Code Monkey logo

application_name's Introduction

More information about project you can see on docs/concept.md

  1. Go to backend directory

create .env and write into next.

DB_ENGINE=django.db.backends.postgresql
DB_NAME=some_db_name
DB_USER=some_user_name
DB_USER_PASSWORD=some_db_password
#db - name of docker container with postgresql
DB_HOST=db
DB_PORT=5432

POSTGRES_DB=some_db_name
POSTGRES_USER=some_user_name
POSTGRES_PASSWORD=some_db_password

EMAIL_USE_TLS=True
EMAIL_HOST=smtp.mail.ru
[email protected]
EMAIL_HOST_PASSWORD=some_password
EMAIL_PORT=2525 for example

# django superuser settings.
DJANGO_SUPERUSER_FIRST_NAME=admin
DJANGO_SUPERUSER_SURNAME=admin
DJANGO_SUPERUSER_USERNAME=admin
[email protected]
DJANGO_SUPERUSER_PASSWORD=1

# Redis settings
REDIS_HOST=redis
REDIS_PORT=6379 

!!! You should change some settings for yourself

Then execute next commands:

  1. docker-compose build
  2. docker-compose up

SUPERUSER will be crated automatticaly when you execute command 'docker-compose up'.

For testing application you can use next command:

sudo docker exec drf_application python manage.py test

!!! But before this you should create /media/test/video_source/ directory and insert in this directory video file '111.mp4'. This is needed only for tests

application_name's People

Contributors

nelyubin35 avatar

Stargazers

 avatar

Watchers

 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.