This is an example of a social network as a part of the interview for TradeCore.
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo apt-get update
sudo aptitude install postgresql postgresql-contrib
sudo su - postgres
createdb --owner postgres tradecore
psql
ALTER USER postgres PASSWORD ‘postgres’;
\q
logout
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.5
sudo aptitude install python-virtualenv
mkdir tradecore_test
cd tradecore_test
virtualenv venv -p python3.5
source venv/bin/activate
sudo apt-get install git
git init
git remote add origin https://github.com/milos-mandic/tradecore_test
git pull origin master
sudo apt-get install libxml2-dev libxslt1-dev python3.5-dev
sudo apt-get install python-psycopg2
sudo apt-get install libpq-dev
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
Import TradeCore.postman_collection.json to Postman
python bot.py