Vaishnava Marriage Bureau
.. image:: https://img.shields.io/badge/built%20with-Cookiecutter%20Django-ff69b4.svg :target: https://github.com/pydanny/cookiecutter-django/ :alt: Built with Cookiecutter Django .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black :alt: Black code style
:License: GPLv3
Install Docker and run Docker on your system. Follow the instructions here to install Docker, https://docs.docker.com/engine/install/
Install docker-compose on your machine. https://docs.docker.com/compose/install/
Copy local.yml to docker-compose.yml
Edit docker-compose.yml to add a few API keys as env variables
Fixer API Key for currency conversion
DJMONEY_EXCHANGE_FIXER_ACCESS_KEY in docker-compose.ymlGoogle places API key
PLACES_MAPS_API_KEY environment variable in docker-compose.ymlRun the services using docker-compose up -d
Check if service is up and running using docker-compose ps. It should show something like below.
.. code-block::
Name Command State Ports
--------------------------------------------------------------------------------------------------
celerybeat /entrypoint /start-celerybeat Up
celeryworker /entrypoint /start-celeryw ... Up
flower /entrypoint /start-flower Up 0.0.0.0:5555->5555/tcp,:::5555->5555/tcp
redis docker-entrypoint.sh redis ... Up 6379/tcp
vmb_django_1 /entrypoint /start Up 0.0.0.0:8000->8000/tcp,:::8000->8000/tcp
vmb_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
http://127.0.0.1:8000 on your browserdocker-compose exec django /entrypoint /app/manage.py createsuperuserdocker-compose exec django /entrypoint /app/manage.py loaddata /app/vmb/matrimony/fixtures/*docker-compose exec django /entrypoint /app/manage.py update_ratesMoved to settings_.
.. _settings: http://cookiecutter-django.readthedocs.io/en/latest/settings.html
Basic Commands
Setting Up Your Users ^^^^^^^^^^^^^^^^^^^^^
To create a normal user account, just go to Sign Up and fill out the form. Once you submit it, you'll see a "Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.
To create an superuser account, use this command::
$ python manage.py createsuperuser
For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.
Type checks ^^^^^^^^^^^
Running type checks with mypy:
::
$ mypy vmb
Test coverage ^^^^^^^^^^^^^
To run the tests, check your test coverage, and generate an HTML coverage report::
$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html
Running tests with py.test
::
$ pytest
Live reloading and Sass CSS compilation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Moved to `Live reloading and SASS compilation`_.
.. _`Live reloading and SASS compilation`: http://cookiecutter-django.readthedocs.io/en/latest/live-reloading-and-sass-compilation.html
Deployment
----------
The following details how to deploy this application.
Docker
^^^^^^
See detailed `cookiecutter-django Docker documentation`_.
.. _`cookiecutter-django Docker documentation`: http://cookiecutter-django.readthedocs.io/en/latest/deployment-with-docker.html
Content type
Image
Digest
Size
364.5 MB
Last updated
about 5 years ago
docker pull rtnpro/vmb-base