Giter Club home page Giter Club logo

pol's Introduction

RSS feed generator website with user friendly interface

PolitePol.com

This is source code of RSS feed generator website with user friendly interface.

Installation of development server for Ubuntu

(If you have some questions please contact me by github email)

Install required packages

sudo apt-get install python-minimal libmysqlclient-dev libxml2-dev libxslt-dev python-dev libffi-dev gcc libssl-dev gettext

Install pip

pushd /tmp
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
popd

Install pip packages

sudo pip install -r pol/requirements.txt

Install less and yuglify

sudo apt-get install nodejs npm
sudo npm install -g [email protected]
sudo npm -g install [email protected]
sudo ln -s /usr/bin/nodejs /usr/bin/node

Install sass

sudo apt-get install ruby
sudo su -c "gem install sass -v 3.7.4"

Install and setup nginx

sudo apt-get install nginx
sudo cp pol/nginx/default.site-example /etc/nginx/sites-available/default
sudo service nginx reload

Install and setup mysql if you didn't yet.

sudo apt-get install mysql-server

sudo mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;

sudo mysql_secure_installation

Create database. Use password 'toor' for root user

mysql -uroot -ptoor -e 'CREATE DATABASE pol DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;'

Create django config

cp pol/frontend/frontend/settings.py.example pol/frontend/frontend/settings.py

Initialise database

pushd pol/frontend
python manage.py migrate
python manage.py loaddata fields.json
popd

Run servers

Run downloader server

pushd pol
python downloader.py
popd

Run frontend server

pushd pol/frontend
python manage.py runserver
popd

Installation of Docker

Build

git clone https://github.com/taroved/pol
cd pol
docker-compose up -d --build

Access (port 8088)

Docker Host IP in browser. Ex: http://192.168.0.10:8088

License

MIT

pol's People

Contributors

marlluslustosa avatar parallellium avatar taroved avatar

Watchers

 avatar  avatar

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.