Giter VIP home page Giter VIP logo

places-api's Introduction

Places API

Introduction

REST API for Geocoded National Address File (GNAF) utilizing Django Rest Framework. For more information about the dataset, see https://data.gov.au/dataset/ds-dga-19432f89-dc3a-4ef3-b943-5326ef1dbecc/details?q=

Setup

  1. Ensure that PostgreSQL is installed. See https://www.postgresql.org/ for more details.

  2. Copy secrets_template.ini in API directory to secrets.ini and fill in the details.

  3. To install (currently only for ubuntu):

    # clone project
    git clone [email protected]:william-librata/places-api.git
    cd places-api
    
    # create and activate virtual env
    python3 -m venv env 
    . env/bin/activate 
    
    # install dependencies
    make
    
    # setup database schema
    make database
    
  4. To run test:

    # activate virtual env    
    . env/bin/activate 
    
    # run test
    make test
    
  5. To test functionality:

    # activate virtual env
    . env/bin/activate
    
    # run django dev server
    cd api
    ./manage.py runserver
    
  6. Open your browser and go to:

    http://127.0.0.1:8000/
    
  7. API documentation can be accessed through:

    <your URL>/swagger-ui/
    
  8. To create ERD:

    1. Install Java
    2. Run:
    java -jar bin/schemaSpy_5.0.0.jar -t pgsql -db <database name> -host <host name> -s <schema name> -u <user name> -p <password> -o <output path> -dp bin/postgresql-42.2.2.jar
    

places-api's People

Contributors

william-librata avatar

Watchers

 avatar

Forkers

teamcfml-in

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.