- MacOS
# install the binary
brew install postgresql
- Ubuntu
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
Command to create database on postgres:
Open your terminal:
Fisrt option:
createdb pypular
Second option
-
Change for postgres account:
sudo su - postgres
-
Run command line to start client postgres.
psql
-
Create user and password.
CREATE USER 'username' WITH PASSWORD 'somepassword';
-
Create a database instance.
CREATE DATABASE 'database-name' WITH OWNER 'username' ENCODING 'utf-8';
- clone repository.
- create a virtualenv.
- Active virtualenv.
- Install dependencies.
- Copy the configuration file.
- Run Migrations
git clone [email protected]:denisra/pypular.git pypular
cd pypular
python3 -m venv .virtualenv
source .virtualenv/bin/activate
pip install -r requirements.txt
cp contrib/env-sample .env
python manage.py migrate
======
Access Twitter App Management and create a new app and generate your Access Token on https://apps.twitter.com/app/[id]/keys
Copy and change with your own credentials
cp contrib/env-sample .env
honcho run python manage.py twitter
honcho run python manage.py createsuperuser
honcho run python manage.py runserver