Skip to content

Jianwei-Wang/my-flaskr

Repository files navigation

                         / Flaskr /

                 a minimal blog application


    ~ What is Flaskr?

      A sqlite powered thumble blog application

    ~ How do I use it?

      0. installation
         sudo apt-get install python-pip
	 pip install virtualenv
	 vritualenv ~/virt_env/flask
	 source ~/virt_env/flask/bin/activate
	 pip install -r requirements.txt

      1. edit the configuration in the flaskr.py file or
         export an FLASKR_SETTINGS environment variable
         pointing to a configuration file.

      2. initialize the database with this command:

         flask --app=flaskr initdb

      3. now you can run flaskr:

         flask --app=flaskr run

         the application will greet you on
         http://localhost:5000/

      4. run on Tencent cloud server with gunicorn web server.

      sudo /home/wangjw/virt_env/flask/bin/gunicorn -b 0.0.0.0:80 manage:app

    ~ Is it tested?

      You betcha.  Run the `test_flaskr.py` file to see
      the tests pass.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published