Giter Club home page Giter Club logo

reflaskr's Introduction

ReFlaskr

Updated version of blog app Flaskr from Python tiny MVC framework Flask tutorial

by digiBlink

Installation

  1. Get it from here using ZIPball or cloning it by git:

    git clone https://github.com/zxpower/reflaskr.git

  2. Go into freshly created folder:

    cd reflaskr/src

  3. Create the database:

    sqlite3 /tmp/flaskr.db < schema.sql

  4. Run the app!

    python app.py or python3 app.py

  5. Open http://localhost:5000/ in your browser to test the site. Use admin as username and default as password to login to system.

To run the app correctly you will require following Python prerequisites installed:

Building and running Docker image

  1. You can run everything via Docker. First you need to build the image that can be done using script provided:

    buildImage.sh - will produce a local image

  2. Next you need to run your newly built container using:

    docker run --name reflaskr -d -p 8080:8080 reflaskr:latest

  3. Now you're able to access reflaskr by opening http://localhost:8080/.

Note - Docker image built is run as non-root user for security measures. You can use it as blueprint for creating your own Docker images for running flask in production. This article contains some hints on how the image is built and how it could be used or debugged.

Support

If you run into any issues, visit project's issue page and report an issue.

This is free software so feel free to use it/modify it as you wish.

If you have any ideas for the next release make sure to post them here and mark them as feature-request!

reflaskr's People

Contributors

dependabot[bot] avatar zxpower avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dyim42

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.