Skip to content

russelmahmud/ecommerce-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

Create a virtualenv to isolate our package dependencies locally

virtualenv env source env/bin/activate # On Windows use env\Scripts\activate

Set Up

$ ./setup.sh

Run Tests

$ ./manage.py test

Test Coverage

$ coverage run --source='.' manage.py test

$ coverage report

Run server

$ ./manage.py runserver

server running at http://localhost:8000

admin panel(admin:adminadmin): http://localhost:8000/admin/

Load Test

Locust tool has been used for load testing. We have added only 2 examples to show how we can write and test locally. Locust can be also used in production and distributed environment.

To run the Locust server:

$ locust --host=http://localhost:8000

Open up Locust’s web interface(http://localhost:8089/)

alt tag

About

Ecommerce example in Django Rest Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published