Skip to content

lv275python/eventually.api

Repository files navigation

eventually.api Build Status Coverage Status

Description

This is the source code of the service which is called "eventually". This app provides flexible and effective event management. "Eventually" helps to manage events, group people into the teams, share responsibilities, and remind about future events.

Technologies

  • Python (3.6.3)
  • PostgreSQL (9.5.9)
  • Django (1.11.6)
  • NodeJS (6.11.4)
  • Redis (3.0.6)

Install

For the next steps of service installation, you will need setup of Ubuntu OS

Install redis-server on your local machine:

sudo apt-get install redis-server

Install and configure PostgreSQL server on your local machine:

sudo apt-get install postgresql postgresql-contrib
sudo -u postgres psql postgres

postgres=# \password
Enter new password:
Enter it again:

postgres=# CREATE DATABASE your_custom_db_name;

postgres=# \q

Go to the cloned repository and install requirement project's packages

pip install -r requirements.txt
  • Go to the eventually/eventually project directory and create your own local_settings.py in the folder with settings.py and configure correct database connection.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'your_custom_db_name',
        'USER': 'your_custom_db_user',
        'PASSWORD': 'your_password_for_user_above',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'example.eventually'
EMAIL_HOST_PASSWORD = '123456'
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = 'example.eventually@gmail.com'

JWT_TOKEN_KEY = 'any secret word'
JWT_ALGORITHM = 'HS256'

AWS_S3_ACCESS_KEY_ID = 'AWS_S3_ACCESS_KEY_ID'
AWS_S3_SECRET_ACCESS_KEY = 'AWS_S3_SECRET_ACCESS_KEY'
AWS_STORAGE_BUCKET_NAME = 'AWS_STORAGE_BUCKET_NAME'
  • Create file eventually.log in /var/log/ directory, And add user permissions to that file.
sudo touch /var/log/eventually.log

sudo chown -R $USER:$USER /var/log/eventually.log
  • Go to the folder with manage.py file and run migrate files
python manage.py migrate

For installing new npm packages in terminal and run WebPack you should be in the directory where pacage.json is located and type:

sudo apt install nvm

nvm install --lts

npm install

Run Project

WebPack

Go to the folder with pacage.json file

  • For build
npm run build 
  • For watch
npm start
  • For run eslint
npm run lint 

Django

Go to the folder with manage.py file, run eventually.api

python manage.py runserver

show_urls

python manage.py shell

from eventually.urls import urlpatterns

def show_urls(urllist, depth=""):
    for entry in urllist:
        print(depth + entry.regex.pattern[1:])
        if hasattr(entry, 'url_patterns'):
            show_urls(entry.url_patterns, depth+entry.regex.pattern[1:])

show_urls(urlpatterns)

Developer info:

  • Lv-275.WebUI/Python team:
    • @dmytrorevak
    • @IvanAndrukh
    • @JjuliaP
    • @makarman
    • @noobhunters
    • @Silent777
    • @Staryj812
  • Lv-288.WebUI/Python team:
    • @ashatna
    • @ChristinaPastushchak
    • @dotiurin
    • @iryn34
    • @tarassito
    • @VasilHamulyak
    • @VitalyiKhlivnyi
    • @YurijH

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors