Skip to content

Dinmukhamet/news

Repository files navigation

News App

News App is a test assessment for DevelopsToday

Table of Contents

Setup

Via Docker

Install docker and docker-compose

After installation run the following command

docker-compose up -d --no-deps --build

And you are good to go

Without Docker

The following setup is for Linux users only

Create virtual environment

python3 -m venv venv

Activate it

source venv/bin/activate

Use the package manager pip to install requirements.

pip3 install -r requirements.txt

Create .env and .db.env files. Set the environment variables. Look at example

Use migrate command to create tables and set relationships in your database.

python3 manage.py migrate

or

django-admin migrate

Run

python3 manage.py runserver

And you are good to go

Documentation

Deployment link

https://develops-today-news.herokuapp.com/

Linting and Formatting

Linting completed with flake8

flake8 --ignore E501 .

Formatting completed with black

black .