Giter VIP home page Giter VIP logo

flask-tymyrddin's Introduction

flask-tymyrddin

Python flask application Netlify Status

Overview

This Flask application displays at https://tymyrddin.dev/.

Website

JAMStack: Frozen-Flask is used to generate the static files based on the routes specified in the Flask app. These static files are hosted on Netlify.

Requirements

  • Python 3.11
  • Flask - micro-framework for web application development
  • Jinga - templating engine
  • Frozen-Flask - generates static files from Flask routes

Installation Instructions

Pull down the source code from this repository:

git clone [email protected]:tymyrddin/flask-tymyrddin.git

Create a new virtual environment:

$ cd flask-tymyrddin
$ python3 -m venv venv

Activate the virtual environment:

$ source venv/bin/activate

Install the python packages in requirements.txt:

(venv) $ pip install -r requirements.txt

Run the Development Server

In the top-level directory, set the file that contains the Flask application and specify that the development environment should be used:

(venv) $ export FLASK_APP=app.py
(venv) $ export FLASK_ENV=development

Run development server to serve the Flask application:

(venv) $ flask run -p 3000

Navigate to 'http://localhost:3000' to view the website!

Build the Static Files

In the top-level directory, run the build script:

(venv) $ python build.py

The static files are generated in the /project/build/ directory, which can then be hosted on Netlify.

Testing

To run all the tests:

(venv) $ pytest -v

To check the code coverage of the tests:

(venv) $ pytest --cov-report term-missing --cov=project

flask-tymyrddin's People

Contributors

ninabarzh avatar

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.