h4ck3rm1k3 / BeetleVaraBangkok

Code name BeetleVaraBangkok - django and api based conference management system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codename : BeetleVaraBangkok

Social media tool used to create a conference via access to various apis.

Sprints

  1. Collection of web resources, bookmarks.
  2. Import bookmarks
  3. Crawl pages
  4. Find wikipedia/wikidata articles that reference pages

Big Long Term Goals

Collect information about target locations, people, audience, speakers, topics and present them to curation team for selection, evaluation, ranking and decision. Resource scheduling and planning algorithms are needed. Feedback from public needs to be collected. Tokens are used to measure resource usage, votes and other key measurements. Decentralized system, run your own node, federate, share data as needed. Compile the python code to run as a mobile app. https://kivy.org/#home maybe

Data Sources

List of Sites that provide APIs, each api would have a form of data Model

Model

Operations

  • Searching for items
  • Displaying lists of items
  • Displaying item
    • Follow link to show original
  • Display items on Map
  • Selection of key instances
  • Relating instances betweeen each other
  • Description of Classes
  • Description of Properties
  • Mapping of tags or properties onto each other.
  • Creation of simple relational models that map the graph data
  • Managing the updating of the data, syncing of the changes.
  • Editing instance
  • Updating back end data

Apps

  • Sites a list of sites with descriptions of the interfaces

History

Docs https://docs.djangoproject.com/en/2.0/intro/tutorial01/ https://codeinthehole.com/tips/using-pip-and-requirementstxt-to-install-from-the-head-of-a-github-branch/

Inheritance https://github.com/jazzband/django-model-utils https://stackoverflow.com/questions/47619535/django-model-inheritance-get-child

~/.local/bin/django-admin startproject BeetleVaraBangkok
 cd BeetleVaraBangkok/
 git init
 download  .gitignore 
 git add *
 python3.7 ./manage.py  migrate
 git commit -m 'v1'
 git status
 ./manage.py

Create source sites ./manage.py startapp SourceSites

 python3.7 -m pip install -r requirements.txt

 ./manage.py createsuperuser
 ./manage.py makemigrations
 ./manage.py migrate

Populate some links

 pandoc Readme.md  | grep http | cut "-d " -f2 | grep https | cut '-d<' -f1  > links.txt
 for x in `cat links.txt`; do sed -e "s%<\$1>%$x%g" SourceSites/fixtures/sites.tt; done  > SourceSites/fixtures/baresites.yaml
 ./manage.py loaddata baresites

 cat requirements.txt | cut -d/ -f3- | cut -d\# -f1 | sed -e's/.git//g' | grep git >> gitlinks.txt
 for x in `cat gitlinks.txt`; do sed -e "s%<\$1>%$x%g" SourceSites/fixtures/sites.tt; done  > SourceSites/fixtures/gitsites.yaml
 ./manage.py loaddata gitsites

Projects to evaluate https://github.com/MattBroach/DjangoRestMultipleModels.git https://docs.djangoproject.com/en/2.0/topics/settings/ https://github.com/beda-software/drf-writable-nested https://github.com/zmathew/django-backbone https://github.com/wq/wq.db

Docs to eval: https://ultimatedjango.com/blog/how-to-consume-rest-apis-with-django-python-reques/

Celery

install rabbit mq

$ sudo rabbitmqctl add_user myuser mypassword $ sudo rabbitmqctl add_vhost myvhost $ sudo rabbitmqctl set_user_tags myuser mytag $ sudo rabbitmqctl set_permissions -p myvhost myuser "." "." ".*"

setup config

edit flowerconfig.py

start flower

python3.7 -m flower --port=5555

start worker

python3.7 -m celery -A process2 worker --loglevel=info

TODO

remove the _id from field names because they are double

debug django backend

import logging log = logging.getLogger('django.db.backends') log.setLevel(logging.DEBUG) log.addHandler(logging.StreamHandler())

processing

provision server

setup server

checkout git workspace

CMDB

python tool https://github.com/allegro/ralph

to eval https://sourceforge.net/projects/i-doit/files/i-doit/1.11/ https://sourceforge.net/projects/itop/files/itop/2.5.0/ https://github.com/tumblr/collins https://github.com/clusto/clusto

List of projects: https://github.com/kahun/awesome-sysadmin#

airflow

https://github.com/apache/incubator-airflow

About

Code name BeetleVaraBangkok - django and api based conference management system


Languages

Language:Python 65.2%Language:HTML 32.7%Language:Makefile 1.3%Language:Shell 0.8%