GithubHelp home page GithubHelp logo

upload_proj's Introduction

Description:

Api based on DRF with uploading functionalities for 3 tiers plan (basic, premium, eterprise) and format png, jpg. 
Project contain implemented expire link, custom user with plan field, fields are validating according to project
Auth: /api-token-auth for obtain-auth-token. 
Only user with defined one of 3 plans can create uploading and read his list of uploaded files.  
User can use actions: list, post(create upload and token). 
Main libraries: Pillow, DRF, Django, Drf.auth, Django environ.

Test:

80% of current code contains working tests.
tests requires implementing better practices for working with files and photos

What is not done:

Custom django admin feature require corrections, 
configuration with docker, 
run on heroku
postgres

Installation Prerequisition:

Python
Django / Django REST Framework

Setup:

Clone repository and fill .env file placed in root directory, with variables:
SECRET_KEY
DOMAIN_URL 
DEBUG

This is example of .env file:

SECRET_KEY='django-insecure-)-a1bb98%ga8k17+s&40r&=%q@l^t=csk7winebcxepzin80b!'
DEBUG=False
DOMAIN_URL='http://127.0.0.1:8000/'

Instruction:

copy: git clone from gitlab
pip install - requirements.txt
python manage.py makemigrations && python manage.py migrate & python manage.py createsuperuser 
python manage.py runserver
before runserver highly recommended to python manage.py test
which will turn on test and check is everything fine with project before up.
from console click to url generated.
User can execute commend python manage.py collectstatic to prepare staticfiles to good look website.

upload_proj's People

Contributors

songo-ku avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.