Skip to content

unbrokenguy/python-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akvelon python course study project.

codecov

About

Service for shortening links and file sharing, with the ability to register to track the statistics of created links and files.

Latest deployed version.

https://python-course.sadmadsoul.dev

Installation

Install python version 3.7 or higher

Install docker and docker-compose

Setup

Start current server

Add environments

  • SECRET_KEY: Your secret key for django application.
  • ALLOWED_HOST: Optional, standard value = 127.0.0.1
  • EMAIL_HOST: Email from which the server will send confirmation emails.
  • EMAIL_HOST_PASSWORD: Email password.

Run tests

export CELERY_BROKER_URL="redis://127.0.0.1:6379"
docker-compose -f docker-compose.test.yml -d --build
cd src
coverage run -m pytest
coverage report --rcfile=.coveragerc
docker-compose -f docker-compose.test.yml down

Start server

docker-compose -f docker-compose.yml -d --build

Server will be available at this url http://localhost:8282/ or http://127.0.0.1:8282/

About

Homework and project repository

Resources

Stars

Watchers

Forks