MrGabe / QuChemPedIA-1

Repository of the QuChemPediaProject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mise en place de l'environement

Installation

pour commencer mettons à jour notre système :

 sudo apt-get update && apt-get upgrade -y

installation de postgreSQL (CF)

sudo apt-get -y install postgresql postgresql-contrib phppgadmin

installation de virtualenv with python3

cd /location
virtualenv -p python3 nameOfEnv
source /path/to/the/directory/of/env

installation de django

pip install django

to Generate a requirements file

pip freeze > requirements.txt

to Install the packages

pip install -r requirements.txt

to relocate the virtual env

virtualenv --relocatable ENV

installation du module de communication avec postgre

pip install psycopg2-binary

Read the doc here :

https://virtualenv.pypa.io/en/stable/userguide/

installation des d'open babel

apt-get install openbabel libopenbabel-dev swig

installation des librairie python

./install_venv.sh

Configuration

creation du superutilisateur django

python manage.py createsuperuser

Set up database :

create an user : "dataSlave", password : "P@ssw0rd"
and a database : "QuChemPedIADB"
to ask django to set up the connection with database :
python manage.py makemigrations QuChemPedIA
python manage.py migrate

Front End assets

Package manager : yarn

Pour installer yarn, voir https://yarnpkg.com/en/docs/install

Yarn requiert NodeJs

Installation des dépendences

yarn

Compilation des assets js et css

Pour le dévelopement :

yarn dev

Pour la production :

yarn build

Release

To release the develop branch onto master:

git checkout develop

Start your release branch

git flow release start [version-tag]

Build front end assets for production

yarn build

Commit the compiled assets

git add QuChemPedIAProject/common_qcpia/static/dist/*
git commit -m "release: Compiled front end assets"

Finish the release

git flow release finish

About

Repository of the QuChemPediaProject


Languages

Language:JavaScript 85.9%Language:HTML 11.4%Language:TeX 0.9%Language:CSS 0.7%Language:Python 0.6%Language:Vue 0.3%Language:Batchfile 0.1%Language:Shell 0.1%Language:ActionScript 0.1%Language:PHP 0.0%Language:Makefile 0.0%