Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

django-rest-api

A REST api written in Django for people with deadlines

Technologies used

  • Django: The web framework for perfectionists with deadlines (Django builds better web apps with less code).
  • DRF: A powerful and flexible toolkit for building Web APIs

Installation

  • If you wish to run your own build, first ensure you have python globally installed in your computer. If not, you can get python here.

  • Then, Git clone this repo to your PC

        $ git clone https://github.com/kiranrokkam09/task.git
  • Dependencies

    1. Cd into your the cloned repo as such:
          $ cd task
    2. Create and fire up your virtual environment:
          $ pyton -m virtualenv venv
          $ cd venv/scripts
          $./activate.ps1
    3. Install the dependencies needed to run the app:
          $ cd ..
          $ cd ..
          $ cd task
          $ pip install -r requirements.txt
    4. Make those migrations work
          $ python manage.py makemigrations
          $ python manage.py migrate
  • Run It

    Fire up the server using this one simple command:

        $ python manage.py runserver

    You can now access the Banks api service on your browser by using

        http://localhost:8000/Bank/
    

    Below: Screenshot from the Bank API

    Bank

    You can now access the Branch with branch details using bank ifsc code with api service on your browser by using

        http://localhost:8000/Branch/?ifsc={bank ifsc code}
    

    Below: Screenshot from the Branch API

    Branch

  • Test It

    U can test the apis using the simple command:

        $ python manage.py test
    
  • Deployment

    U can check the deployment server here https://kiranrokkam456.pythonanywhere.com/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages