Skip to content
/ moments Public

A photo sharing social networking app built with Python and Flask.

License

Notifications You must be signed in to change notification settings

greyli/moments

Repository files navigation

Moments

A photo sharing social networking app built with Python and Flask. The example application for the book Python Web Development with Flask (2nd edition) (《Flask Web 开发实战(第 2 版)》).

Demo: http://moments.helloflask.com

Screenshot

Installation

Clone the repo:

$ git clone https://github.com/greyli/moments
$ cd moments

Install dependencies with PDM:

$ pdm install

Tip

If you don't have PDM installed, you can create a virtual environment with venv and install dependencies with pip install -r requirements.txt.

To initialize the app, run the flask init-app command:

$ pdm run flask init-app

If you just want to try it out, generate fake data with flask lorem command then run the app:

$ pdm run flask lorem

It will create a test account:

Now you can run the app:

$ pdm run flask run
* Running on http://127.0.0.1:5000/

License

This project is licensed under the MIT License (see the LICENSE file for details).

About

A photo sharing social networking app built with Python and Flask.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published