Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doubts regarding end Result #5

Open
Lazeeez opened this issue Mar 22, 2023 · 10 comments
Open

doubts regarding end Result #5

Lazeeez opened this issue Mar 22, 2023 · 10 comments

Comments

@Lazeeez
Copy link

Lazeeez commented Mar 22, 2023

Hey guys, I had a question regarding end result of this assignment.

Are we supposed to just code the whole assignment in python and create a API endpoint (I'm using Flask) locally or do we have to host it on a server and then submit the link?

@shubh24 @ashwinexe @nipunj15

@Lazeeez
Copy link
Author

Lazeeez commented Mar 22, 2023

Currently, I wrote the python script to load the data from .csv to .db and then perform the operations on that .db file and create another .csv file (different files for different criteria) and save the result of those criteria in those files.

The script takes input from a .json file in the same directory and I also made the script very generalized so that it can take various different operations and not just the given criteria.

@gaurav-2-0-0-2
Copy link

gaurav-2-0-0-2 commented Mar 24, 2023

I have a question did you run the converted query on your database ?

Also, how are you posting the data, is it via query parameters, I am using postman to post the JSON data for criteria and console logging it in my terminal to show the converted query.

@Lazeeez
Copy link
Author

Lazeeez commented Mar 24, 2023

@gaurav-2-0-0-2 yes, it prints out the result and also stores it into an output file provided in the .json

@gaurav-2-0-0-2
Copy link

where are you printing those results in the console or at the page itself.

@Lazeeez
Copy link
Author

Lazeeez commented Mar 24, 2023

@gaurav-2-0-0-2 it basically returns the result in the message, the return statement of the API

@gaurav-2-0-0-2
Copy link

Oh, I'm actually using node.js express for writing the API and posting the request (the JSON data) via postman.

@gaurav-2-0-0-2
Copy link

Are you using any tool like knex.js to convert JSON data into query or just the python code.

@Lazeeez
Copy link
Author

Lazeeez commented Mar 24, 2023

core python and some other libraries

@Lazeeez
Copy link
Author

Lazeeez commented Mar 24, 2023

Oh, I'm actually using node.js express for writing the API and posting the request (the JSON data) via postman.

did you host it somewhere orr are you running it locally?

@gaurav-2-0-0-2
Copy link

gaurav-2-0-0-2 commented Mar 24, 2023

I'm actually running it locally. I think they should also provide the info about it. I'm confused too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants