Skip to content

task_data is a simple web application that leverages information from a database and serve it to the users, as per the request.

License

Notifications You must be signed in to change notification settings

maheshkrishnagopal/SST_Python_Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Steel Technologies Task v0.1

The task is to load a csv data into a database and that shall be served as a web application to query the loaded information. The web application leverages information from MySQL database and serve it to the users, as per the request.

Technology Stack

  • Python - As a backend language for scripting.
  • Flask - Python's micro framework for creating web applications.
  • MySQL - Database.
  • HTML, CSS, JavaScript - User Interface / Frontend
  • AWS RDS - MySQL resides in AWS

Code Style

This task has been developed as per the PEP8 standards.

SetUp and Implementation

Pre-requisites

To setup and run this application, Python 3+ is required along with the below modules.

  • Flask
  • mysql-connector
  • pandas
  • base64

Steps to run the script that transfers task_data.csv information to database

  1. Download the transfer_to_db.py from this repository.
  2. Place the task_data.csv file in the same folder, where transfer_to_db.py resides.
  3. Open transfer_to_db.py in an IDE, and run the file.

Steps to setup and run the web application to access the data

Once the above pre-requisites are in place, perform the below steps

  1. Download/Clone this task_data repository and open the app.py in an IDLE.
  2. Run the app.py file, without changing any folder structure.
  3. Open a web browser and access the application using, YOUR_IP_ADDRESS:8002 or localhost:8002

Easy of Access [Deprecated]

For easy of access to the application, without implementation, please go to https://www.maheshkrishnagopal.com/smart_steel_task

Reference for User Interface

Since I am not an expert in UI design, I have referred the template from SoloDev as per link below, https://www.solodev.com/blog/web-design/adding-a-datetime-picker-to-your-forms.stml. However, the modification of the template as per the requirement are taken care as part of the assignment by me, as it is an open source code available on GitHub. Thanks to SoloDev.

License

This project is licensed under GNU General Public License. Copyright (c) 2020 Maheshkrishna A G

About

task_data is a simple web application that leverages information from a database and serve it to the users, as per the request.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published