Skip to content

yerlan2/NSB_NEWS

Repository files navigation

NSB NEWS

News Service


Technologies

  • Python 3
  • SQLite 3
  • Apache Spark

Python packages: Requirements


Scripts

Creating a virtual environment:

python3 -m venv myvenv

Entering the virtual environment:

source myvenv/bin/activate

or

. myvenv/bin/activate

Installing all required packages:

pip3 install -r requirements.txt

Start project:

python3 main.py

Pages and images


Login page (when not logged in)

URL: http://localhost:5000/login

Login


Registration page (when not logged in)

URL: http://localhost:5000/register

Registration


Main page (when logged in)

URL: http://localhost:5000

Main


Category page (when logged in)

URL pattern: http://localhost:5000/c/<string:category_name>

URL (Example): http://localhost:5000/c/entertainment

Category


Search page (when logged in)

URL pattern: http://localhost:5000/search?q=<string:q>

URL (Example): http://localhost:5000/search?q=Gadget

Search


Favorite page (when logged in)

URL: http://localhost:5000/favorite

Favorite


Recommendation page (when logged in)

URL: http://localhost:5000/recommendation

Recommendation


[ Admin ] Login page (when not logged in)

URL: http://localhost:5000/admin/login

Admin Login


[ Admin ] Dashboard page (when logged in)

URL: http://localhost:5000/admin/dashboard

Dashboard


[ Admin ] Article creation page (when logged in)

URL: http://localhost:5000/admin/articles

Article creation