sumankanukollu / omnilytics

Programming challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OMNILYTICS Programming challenge:

Problem Statement:

Write a Web app using React.js to generate four (4) types of printable random objects and store them in a single file, each object will be separated by a ",". These are the 4 objects: alphabetical strings, real numbers, integers, alphanumerics. Sample extracted output:

hisadfnnasd, 126263, assfdgsga12348fas, 13123.123, lizierdjfklaasf, 123192u3kjwekhf, 89181811238,122, nmarcysfa900jkifh , 3.781, 2.11, ....

The output should be 2MB in size. Once file generation is done the output should be available as a link which can be then downloaded by clicking on it. Also, there should be a button on the page so by clicking on this button the total number of each random objects will be displayed.

Note: The backend API must be written using Flask (Python) or Express frameworks. All the communication between frontend and backend MUST be done via these APIs only.

Note: Upload the project in Github and share the link with us.

clike here to know about the challenge

1. Code for the solution :

2. Solution Demo:

demo

3. Resources used:

  • Django
  • Python

4. REST API's:

5. Backend serverside logs:

D:\myProjects\omnilytics\omnilyticsApp>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
October 26, 2021 - 20:25:37
Django version 3.2.6, using settings 'omnilyticsApp.settings'
Starting development server at http://127.0.0.1:8000/        
Quit the server with CTRL-BREAK.
[26/Oct/2021 20:25:44] "GET / HTTP/1.1" 200 464
### You are in generate function
### File size is : 2.0 MB
### You are in generate function is done
[26/Oct/2021 20:25:47] "GET /generate/? HTTP/1.1" 200 756
### File path is : D:\myProjects\omnilytics\omnilyticsApp\omni_log_2.txt
[26/Oct/2021 20:25:50] "GET /download/ HTTP/1.1" 200 2110799
### Integers : 39601
### real numbers : 40400
### Alpha Numeric  : 120401
### Alphabets count : 40400
### Report is  : {'int': 39601, 'alnum': 120401, 'realnum': 40400, 'alpha': 40400, 'display_report': True, 'showLink': True}      
[26/Oct/2021 20:25:52] "GET /report/? HTTP/1.1" 200 997

About

Programming challenge


Languages

Language:Python 92.4%Language:HTML 7.6%