Git Product home page Git Product logo

django_badger's Introduction

Django Badger

Award Badges

Example cURL commands to exercise the API

You can test the API from the command line using cURL. If you pipe the response to json_pp it will format the returned data.

Add user

curl -i \
-u admin2:somepasswd \
-H "Content-Type: application/json" \
-X POST --data '{"email": "[email protected]", "password": "notsecret", "username": "user1"}' http://localhost:8000/users/api/

List users

$ curl  -u fred:mypassword http://localhost:8000/users/api/ | json_pp

Example Docker commands

You can run commands in Docker containers. Some examples are given below:

$ docker-compose exec web sh api_test_scripts/add_user.sh user1
$ docker-compose exec web ./manage.py makemigrations
$ docker-compose exec web ./manage.py migrate

Prerequisites to run functional tests

The functional tests use the Firefox web browser and Geckodriver.

The Geckodriver is available from:

 https://github.com/mozilla/geckodriver/releases.

You should download and extract it and put it somewhere on your system path, for example, /usr/local/bin if running Linux.

django_badger's People

Contributors

philratcliffe avatar

Watchers

 avatar  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.