Skip to content

TüNews International data back end for Integreat

License

Notifications You must be signed in to change notification settings

digitalfabrik/tunews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3c0c692 · Oct 23, 2023

History

29 Commits
Apr 16, 2020
Oct 23, 2023
Apr 15, 2020
Apr 15, 2020
Sep 4, 2019
Jun 3, 2020
Mar 27, 2021

Repository files navigation

TUNEWS

TüNews International data back end for Integreat.

These apps offer a user interface to create, edit or delete messages (news), which can be retrieved via an simple API.

Dependencies

  • You can use Ubuntu 18.04
    • Also Windows or WSL or other distributions maybe possible
  • install python3
    • sudo apt-get install python3
    • sudo apt-get install python3-pip
    • if an error occur, maybe run: sudo sh -c 'apt update && apt upgrade'
  • install virtual env for python
    • sudo apt-get install python3-venv
  • install sqlite3 for developing *

Setup

  • clone the repository in your workspace
  • change in the project folder
    • cd tunews/
  • Create a virtual environment
    • python3 -m venv .venv
  • Activate the virtual envoironment
    • source .venv/bin/activate
  • run setup.py for development
    • python3 setup.py develop
  • Migrate the project
    • manage.py migrate
  • Create a superuser for testing
    • manage.py createsuperuser
  • Run the demo server
    • manage.py runserver

Usage

After starting the server you can reach the user interace via http://localhost:8001/admin/ and log in with the previus created superuser.

There you are able to create groups or users and gave them required permissions to interact with the system.

You can also add News, News-Categories and Languages.

Over the API you can access the stored data.

General

News - item overview

A news item has a title, content, e-news-number (a unique number I guess), datetime, news-category and language.