v/pol
1
0
mirror of https://github.com/taroved/pol synced 2025-05-19 07:40:08 -07:00

Update readme.md

This commit is contained in:
Marllus Lustosa 2019-12-13 19:57:40 +00:00 committed by GitHub
parent 1ea8ab0a4c
commit e80786fe51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,99 +1,20 @@
# [PolitePol.com](http://politepol.com "RSS Feed Generator") # [PolitePol.com](http://politepol.com "RSS Feed Generator")
# RSS feed generator website with user friendly interface # RSS feed generator website with user friendly interface
# Docker version
![PolitePol.com](frontend/frontend/assets/frontend/images/apple-touch-icon-144x144-precomposed.png "PolitePol.com") ![PolitePol.com](frontend/frontend/assets/frontend/images/apple-touch-icon-144x144-precomposed.png "PolitePol.com")
This is source code of RSS feed generator website with user friendly interface.
## Installation of development server for Ubuntu ## Build
(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 git clone https://github.com/marlluslustosa/pol
``` cd pol
docker-compose up -d --build
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 less@2.7.1
sudo npm -g install yuglify@0.1.4
sudo ln -s /usr/bin/nodejs /usr/bin/node
```
Install sass
```
sudo apt-get install ruby
sudo su -c "gem install sass -v 3.4.22"
```
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
``` ```
## Access (port 8088)
Docker Host IP in browser. Ex:
http://192.168.0.10:8088
## License ## License