GithubHelp home page GithubHelp logo

akyya-mayberry / logbud Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 11.76 MB

Security log app that explores Flask and several flask extensions.

Python 36.60% CSS 18.81% JavaScript 2.04% HTML 39.90% Mako 1.42% Shell 1.22%

logbud's Introduction

Logbud

Security log app that explores Flask and several flask extensions.

Setup

  1. Create a postgres database named logbud
  2. Clone the logbud repository.
  3. Create a virtual environment and activate it.
  4. While inside your virtual environment, export the following two required environment variables
export FLASK_APP=run.py
export DEBUG=1

These variables informs Flask of the path to the logbud app and sets debugging to true.

  1. Next we set up the database. While inside the root directory of the app where manage.py is located, excute the following,
python manage.py db updgrade
  1. Make sure you are inside the root directory of the application where run.py is located, and start the application.
flask run

This should start your server and direct you to http://localhost:5000 to view the application

Testing out the application

  1. To create a user that can log visitors, navigate to http://localhost:5000/admin and click on the User Profile tab. By clicking on the Create tab, you can create a new users. It is important that you DO NOT LEAVE THE PASSORD FIELD BLANK. Users must be assign a password, otherwise you will experience problems logging the user in.
  2. Once the user is created, login the user at http://localhost:5000/login.
  3. The user can then begin to sign visitors in and out and view logs.

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.