Pypular
Summary
Setting up Database
Install postgresql
- MacOS
# install the binary
brew install postgresql
- Ubuntu
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
Create DB
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';
How to Development?
- 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
======
Configuration
Getting credentials your on Twitter
Access Twitter App Management and create a new app and generate your Access Token on https://apps.twitter.com/app/[id]/keys
Configuration
Copy and change with your own credentials
cp contrib/env-sample .env
Running
honcho run python manage.py twitter
Checking data
Create SuperUser
honcho run python manage.py createsuperuser
Accessing Django Admin
honcho run python manage.py runserver