Git Product home page Git Product logo

totient's Introduction

install python3.4 to your system from https://www.python.org/downloads/

commands for linux or mac terminal , creating virtual-env and installing dependencies

$ python3.4 -m venv totient_env $ pip install -r requirement.txt

activating the virtual environment

for mac-terminal

$ . totient_env/bin/activate

for linux/unix terminal

$ source totient_env/bin/activate

export project patch to pythonpath : or .../totient/

export PYTHONPATH=path-to-project-root:$PYTHONPATH

running the dev server

manage.py is located in totient/manage.py

python manage.py runserver

try viewing urls in swagger localhost:8000/docs/ , access the admin site at localhost:8000/admin/

/api-token-auth/ : for getting the jwt token

pass the jwt token to every request

urls are:

Get/POST : /route/routes/ (Lists and create routes for a logged-in-user with name, default set date as todays date) POST: /route/locations/ (Add one or more locations : (lat, long), along with route-id of the logged-in user)

Admin-only:

GET : route/admin/routes/ (Lists all routes , with filtering on user, date_from, date_till)

totient's People

Contributors

prateek099 avatar

Watchers

Prateek Pandey 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.