/holis

Holis Django Backend and Frontend

Primary LanguageCSS

Website hol.is Code style: black

Holis 👋 (My team couldn't finish this project, maybe you can.)

[Dashboard Holis

Holis 👋

Holis is a communication tool for that offers a single access point for remote teams, Holis will be offer:

  • Voice Communication (Done).
  • Chat Communication (Done).
  • Project management (WIP).
  • Video Calls (Pending).
  • Bots creation (Pending).

Hello, 👋 I am gonna tell you how to make this works in local.

  1. Install pre-commit.

Precommit checks the project when a commit is generated.

  • pip install pre-commit --user

  • pre-commit install

  1. Create tenant hosts 😱

Holis is a multitenant application, we use the subdomain as tenant id, so, we need create local subdomains for work propertly.

Edit your host file and create and add this at the end

127.0.0.1 adslab.holis.local
127.0.0.1 firesoft.holis.local
127.0.0.1 holis.local

this allows you to use this endpoints:

  1. Uploading the backend ⚙️

Upload containers in one single command

make up

This command will open a bash shell inside the backend environment, here you can execute different command like:

  • dev up: is equivalent to python manage.py runserver 0.0.0.0:8000
  • dev makemig: crate migrations, is equivalent to `python manage.py makemigrations``
  • dev migrate: execute migrations, is equivalent to python manage.py migrate
  • dev sqlmig: show sql of the migration
  • dev makemessages: crete locations files.
  • dev compilemessages: compile locations
  1. Running the front app. 🏙

cd webapp yarn yarn serve

  1. Use the default users to enter to the app.

username: viktor@hol.is password: holis123.

username: julls@hol.is password: holis123.

  1. (Optional) Create your user 👨🏻‍💻

Running tests with py.test

  1. Happy coding! 👨🏻‍💻👩🏻‍💻

Email Server

In development, it is often nice to be able to see emails that are being sent from your application. For that reason local SMTP server MailHog_ with a web interface is available as docker container.

Container mailhog will start automatically when you will run all docker containers. Please check cookiecutter-django Docker documentation_ for more details how to start all containers.

With MailHog running, to view messages that are sent by your application, open your browser and go to http://127.0.0.1:8025

.. _mailhog: https://github.com/mailhog/MailHog

Sentry 🖥

We use sentry to production enviroment exeception tracking

Deployment 🚀

The following details how to deploy this application.

We count with CI in production, so, you just need to push to master and the deploy process begin.

Special thanks for: