Git Product home page Git Product logo

Comments (9)

dhruv-1001 avatar dhruv-1001 commented on August 30, 2024 1

@ChakshuGautam, for documenting APIs, I'm going ahead with swagger docs.

from geoquery.in.

dhruv-1001 avatar dhruv-1001 commented on August 30, 2024 1

Hey @Abhinav-Saxena-dev. This looks great!
This seems to cover everything that we have now.
You can go ahead!

from geoquery.in.

dhruvchandak30 avatar dhruvchandak30 commented on August 30, 2024

@dhruv-1001 @ChakshuGautam I would Like to work on this issue.
Should I create Next App in the root folder to start with ? So that everybody can help in migrating the codebase.

from geoquery.in.

Abhinav-Saxena-dev avatar Abhinav-Saxena-dev commented on August 30, 2024

Hey, I'd like to work on this. I've gone through the project and suggest the following approach:

Folder structure of Nest app:

- src
  - app
    - models
      - city
        - city.controller.ts
        - city.module.ts
        - city.serializer.ts
        - city.controller.spec.ts
      - georev
        - georev.controller.ts
        - georev.module.ts
        - georev.serializer.ts
        - georev.controller.spec.ts
      - location
        - location.controller.ts
        - location.module.ts
        - location.serializer.ts
        - location.controller.spec.ts
        - location.service.ts
        - location.service.spec.ts
  - config
    - config.json
    - swagger.config.json
  - geojson-data
  - services
    - geojson
        - geojson.service.ts
    - logger
        - logger.service.ts
  - util
    - common
      - gdb_to_geojson
      - parse.geojson
    - serializer
      - success
      - error

Justification

  • Creating three modules for handling city, georev, and location routes to maintain distinct functionality.
  • Functions such as those used for formatting response (success or error ) will be moved to their respective serializer ( utils/serializer in case it's a common one )
  • Functions responsible for reading the Geo-Json data from the file path and providing the feature properties will be moved to /services/geojson/geojson.service.ts and will be injected in the modules, wherever necessary.
  • Similarly, functions belonging to location.search.js will be moved to location.service.ts and injected into a module as necessary.

Stencil-cli will be used to setup the project. Finalized structure might slightly defer from the proposed structure.

Logger

  • For logging data, a custom logger service will be set

Swagger

  • Will set up swagger using @nestjs/swagger and implement it with existing config.

Scripts

  • The scripts will be moved to common utilities.

Please let me know what changes are required here, I will create a tech doc post review.

from geoquery.in.

Abhinav-Saxena-dev avatar Abhinav-Saxena-dev commented on August 30, 2024

@dhruv-1001 Hey, I've completed the code migration and have raised a Draft PR. I have added relevant information in the description for now and maintaining a check list of tasks there.

Please review it once and let me know whatever changes / new updates that might be required there.

from geoquery.in.

Abhinav-Saxena-dev avatar Abhinav-Saxena-dev commented on August 30, 2024

Update:

  • Code clean-up is completed.
  • Cleaned up logger
  • Added validations

To be left / Completed by EOD

  • Swagger documentation needs to be implemented.
  • Test cases for APIs.

A merge conflict has occurred, attempting to public the draft PR by EOD.

from geoquery.in.

dhruv-1001 avatar dhruv-1001 commented on August 30, 2024

Hey, @Abhinav-Saxena-dev. Will try to review your PR this weekend.

from geoquery.in.

ChakshuGautam avatar ChakshuGautam commented on August 30, 2024

@dhruv-1001 what's the update on this?

from geoquery.in.

Abhinav-Saxena-dev avatar Abhinav-Saxena-dev commented on August 30, 2024

@dhruv-1001 I would like to request a review of the PR. The merge conflict arose due to the db.md, which I had updated but the prompt remains. Apart from that, the PR is ready.

Please let me know any changes that you would require.

from geoquery.in.

Related Issues (20)

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.