Giter VIP home page Giter VIP logo

mfproject's Introduction

MFproject

Simple django webapp to demo api's for querying different schemes. The schemes are provided in a file with a pre-defined format. Check file 'NAV0.txt' under wsgi/project folder for example.

To deploy the app locally follow the following steps:

  1. create a database with name 'demo'. Here we are using sqlite3 db to keep things simple.
  2. run python manage.py syncdb from wsgi/project folder to synch database
  3. run python manage.py rip_file <filename> ex: python manage.py rip_file NAV0.txt to populate entries in the DB.
  4. run python manage.py runserver to start the server
  5. visit the following urls

http://localhost:8000/schemes/?category=<category_name> ex: http://localhost:8000/schemes/?category=Open Ended Schemes(Balanced)

http://localhost:8000/schemes/<scheme_id> ex: http://localhost:8000/schemes/135760/

A routine is written to process the input file containing information about different schemas and populate the entries in the DB. One can find the code located at file 'wsgi/project/mfapp/management/commands/rip_file.py'.

mfproject's People

Contributors

krishn2014 avatar

Watchers

 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.