GithubHelp home page GithubHelp logo

prkksh / logs-analysis Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6 KB

Logs Analysis project - Udacity nanodegree - Fullstack web development

Python 100.00%
logs-analysis udacity-nanodegree sql python

logs-analysis's Introduction

Log Analysis Project

Overview

This project is aimed at creating multiple SQL queries to obtain information from a news database. The code is expected to have single query to answer individual requests. The objective is to test SQL skills. (This project is for Logs Analysis from Udacity Full Stack Developer Nanodegree)

Requirements

  • Python 2 - version 2.7.12
  • Vagrant
  • VirtualBox
  • Git

Project Objectives

The project has three objectives,

  • Most popular article of all time
  • Most popular article author of all time
  • Day on which more than 1% requests led to error

To run the Project

  • Install Vagrant and VirtualBox
  • Vagrant can be installed using configurations provided by Udacity from here
  • Clone this repo

git clone https://github.com/prkksh/Logs-Analysis/

  • Open terminal and cd in to the folder vagrant is installed and run 'vagrant up' to launch the linux VM. Once its done, login using 'vagrant ssh' command.
  • The files are inside the vagrant folder. To access the files, run

cd /vagrant

  • Download the database from here. Move this file in to the vagrant folder.
  • From terminal run

psql -d news -f newsdata.sql

  • Once the database is set, connect to the database using

psql -d news

  • Run the module with

python logs.py

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.