Git Product home page Git Product logo

salary_reports's Introduction

Project description

  • This project reads the data from .csv files and stores it into SQLite database
  • Runs a Flask webserver to make it possible to review stored data via browser
  • Added some basic filters on UI side to filter data by salary

Prerequisites

To start this project under Ubuntu (or EC2 instance with Ubuntu) you'll need:

  • virtualenv (to isolate Python's installed libraries)

Preparation

  • Create your virtual environment (it's recommended to create it in the project's directory):

    virtualenv venv

  • Activate your virtual environment:

    . venv/bin/activate

  • Install required Python's dependencies:

    pip install -r requirements.txt

Well, your environment is ready!

Move the data from .csv files into SQLite database

To move all the data from your .csv files stored in data folder please run:

`python create_databases.py`

If everything is OK, salaries.sqlite file will appear in your folder.

Startup your web application

To start your web application please run:

`python web_app.py &`

It starts a webserver on 5000 port.

To make sure everything works fine, open your browser and check it:

http://<your_ip_address>:5000

If you're running this under AWS EC2 instance it requires to open inbound traffic for 5000 port.

Deploy application into Heroku

Download Heroku Cli from:

https://devcenter.heroku.com/articles/getting-started-with-python#set-up

Login into heroku via Cli(using your heroku credentials):

  heroku login

Clone project sources from Github:

  git clone https://github.com/StrongBrain/salary_reports.git

Move into directory with sources:

  cd salary_reports

Create an application on Heroku:

  heroku create

Deploy your code into Heroku:

  git push heroku master

Ensure that at least one instance of the app is running:

  heroku ps:scale web=1

Now visit the app at the URL generated by its app name. As a handy shortcut, you can open the website as follows:

  heroku open

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.