GithubHelp home page GithubHelp logo

system-contakto's Introduction

Powered by

Web Development Tijuana

Contakco System

Installation Steps

BE

  • Create a virtual environment and activate: source ./contakto/bin/activate
  • Clone project
  • Create your branch (topics/feature)
  • Install python packages ($ pip install -r requirements.txt)
  • Run server ./project/manage.py runserver

NOTES:

Migrate DB

./project/manage.py syncdb ./project/manage.py migrate ./project/manage.py migrate persona ./project/manage.py migrate

docker build -t garciadiazjaime/admin-contakto . docker run -d -p 49164:8000 garciadiazjaime/admin-contakto docker push garciadiazjaime/admin-contakto docker pull garciadiazjaime/admin-contakto

Setup

  • Create contactos Group. This group will be assigned to Company contacts with restricted access to the system:

Deploy

fab deploy

Debug

  • Import pdb > Add tracer

import pdb pdb.set_trace()

The application will stop righ where the tracer has been added.

Reset DB

  • Copy Password (copy it) echo $MYSQL_PASSWORD

  • Dump DB mysqldump -u $MYSQL_USER -h $HOSTNAME -p db_contakto > db_contakto.sql

  • Copy DB Out of container docker cp mysql-contakto:/db_contakto.sql ./

  • Copy DB from server to local folder scp [user:ip]:/root/container-nginx/db_contakto.sql docs

  • Create DB locally create database db_contakto;

  • Load DB from sql file mysql -uroot db_contakto < docs/db_contakto.sql

Migrations

Follow steps found on this tutorial to create/run migrations.

ie.

  • Create migration ./project/manage.py makemigrations [model]

  • Run migration ./project/manage.py migrate

Compass

  • Watch sass files compass watch project

  • Compile sass files compass compile project

Installing python 3.5

brew install pyenv

CFLAGS=-I/usr/include/openssl LDFLAGS=-L/usr/lib pyenv install -v 3.5.3

export PATH="~/.pyenv/versions/3.5.3/bin:${PATH}"

eval "$(pyenv init -)"

pip install virtualenvwrapper

source /usr/local/bin/virtualenvwrapper.sh

virtualenv mp1

source mp1/bin/activate

virtualenv

SQL queries

mysql -uroot db_contakto < project/scripts/empresas-poca-actividad.sql > docs/empresas-poca-actividad.csv mysql -uroot db_contakto < project/scripts/empresas-repetidas.sql > docs/empresas-repetidas.csv

system-contakto's People

Contributors

9034725985 avatar andrejtokarcik avatar banzaiman avatar bparees avatar coldfire-x avatar danmcp avatar dblado avatar dependabot[bot] avatar dveeden avatar garciadiazjaime avatar gshipley avatar iepathos avatar jay-johnson avatar jgarciadiaz avatar jordivelazq avatar kamarkiewicz avatar kraman avatar lmacken avatar mfojtik avatar mrunalp avatar nhr avatar smarterclayton avatar tavofuentes avatar thefotios avatar thesteve0 avatar zemanel avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.