GithubHelp home page GithubHelp logo

Pypular

Build Status Code Health Coverage Status

Summary

Setting up Database

Install postgresql

  1. MacOS
# install the binary
brew install postgresql
  1. 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

  1. Change for postgres account:

    sudo su - postgres
    
  2. Run command line to start client postgres.

    psql
    
  3. Create user and password.

    CREATE USER 'username' WITH PASSWORD 'somepassword';
    
  4. Create a database instance.

    CREATE DATABASE 'database-name' WITH OWNER 'username' ENCODING 'utf-8';
    

How to Development?

  1. clone repository.
  2. create a virtualenv.
  3. Active virtualenv.
  4. Install dependencies.
  5. Copy the configuration file.
  6. 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

pypular's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.