Skip to content

alexnegrya/drf-products-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DRF Products CRUD

Test app for make virtual products CRUD using Django REST Framework abilities.

Installation

  • Install PostgreSQL and create database "drf_products_crud" - sudo -u postgres psql -c 'create database drf_products_crud owner postgres'
  • Clone repo - git clone https://github.com/alexnegrya/drf-products-crud
  • Enter into project folder ("drf-products-crud")
  • With already installed Python with Pip:
    • Install requirements - pip install -r requirements.txt
    • Enter into "project" folder
    • Apply Django migrations - python manage.py migrate

Usage

This works in folder "project" only.

  • To run server execute default Django command for this - python manage.py runserver.
  • Extra feature - manage Products models for test. Execute python test_products.py <action> for this. Supported actions:
    • create - Create test Products models
    • delete - Delete test Products models

About

Django REST Framework app with products CRUD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published