sudo apt-get update && apt-get upgrade -y
installation de postgreSQL (CF)
sudo apt-get -y install postgresql postgresql-contrib phppgadmin
cd /location
virtualenv -p python3 nameOfEnv
source /path/to/the/directory/of/env
pip install django
pip freeze > requirements.txt
pip install -r requirements.txt
virtualenv --relocatable ENV
pip install psycopg2-binary
https://virtualenv.pypa.io/en/stable/userguide/
apt-get install openbabel libopenbabel-dev swig
./install_venv.sh
python manage.py createsuperuser
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
Pour installer yarn, voir https://yarnpkg.com/en/docs/install
Yarn requiert NodeJs
yarn
Pour le dévelopement :
yarn dev
Pour la production :
yarn build
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