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.
- Python (3.6.3)
- PostgreSQL (9.5.9)
- Django (1.11.6)
- NodeJS (6.11.4)
- Redis (3.0.6)
For the next steps of service installation, you will need setup of Ubuntu OS
sudo apt-get install redis-server
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
pip install -r requirements.txt
- Go to the
eventually/eventuallyproject 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.login/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.pyfile 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
Go to the folder with pacage.json file
- For build
npm run build
- For watch
npm start
- For run eslint
npm run lint
Go to the folder with manage.py file, run eventually.api
python manage.py runserver
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)
- 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