Coder Social home page Coder Social logo

atlan-task's Introduction

atlan-task

Problem Statement

Subtask 1

Design a sample schematic for how you would store forms (with questions) and responses (with answers) in the Collect data store. Forms, Questions, Responses and Answers each will have relevant metadata.

Approach

  • Schema -
  • Schema

  • The above image shows the schematic approach of implementation.So as we can see that the tables itself stores the metadata of the form,For ex. field table have columns like
    • type - type of data to be accepted in this field
    • mandate - if the feild is mandatory or not
    • upper_ limit and lower_limit - to add constraint to the input
    and many more which can be used to validate response.
  • APIs-
  • 127 0 0 1_5000_swagger-ui_

  • These are the REST APIs implemented using flask-restful, and are protected with JWT token based authentication.
  • Subtask 2

    Design and implement a solution for the Google Sheets use case and choose any one of the others to keep in mind how we want to solve this problem in a plug-n-play fashion. Make fair assumptions wherever necessary.

    Approach

  • For googlesheet plugin, the service is designed seperately using GoogleSheet API.
  • https://github.com/Pratyush-Saxena/atlan-task/blob/3d5759cf47c0225efded267c9dfe667570554258/plugins/googlesheet/__init__.py#L4-L38
  • So the Service can easily be called by initializing whenever needed
  • https://github.com/Pratyush-Saxena/atlan-task/blob/3d5759cf47c0225efded267c9dfe667570554258/collect/routes.py#L139-L180

    docs google com_spreadsheets_d_1yNbMjl0F6F9YGEOTgi2MwgeuTWHuNr7w9TB-NMbI4QE_edit

    Getting Started

    1. Clone the repository
    2. git clone https://github.com/Pratyush-Saxena/atlan-task.git
      
    3. Run docker-compose
    4. docker-compose up --build
      
    5. Open Url http://127.0.0.1:5000/swagger-ui/#/default

    atlan-task's People

    Contributors

    s-pratyush 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.