https://github.com/greyli/moments
A photo sharing social networking app built with Python and Flask.
https://github.com/greyli/moments
Last synced: 8 days ago
JSON representation
A photo sharing social networking app built with Python and Flask.
- Host: GitHub
- URL: https://github.com/greyli/moments
- Owner: greyli
- License: mit
- Created: 2024-02-12T10:16:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-25T13:28:54.000Z (4 months ago)
- Last Synced: 2025-05-12T14:21:22.386Z (8 days ago)
- Language: Python
- Homepage: http://moments.helloflask.com/
- Size: 2.1 MB
- Stars: 19
- Watchers: 2
- Forks: 29
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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)](https://helloflask.com/en/book/4)* (《[Flask Web 开发实战(第 2 版)](https://helloflask.com/book/4)》).
Demo: http://moments.helloflask.com

## Installation
Clone the repo:
```
$ git clone https://github.com/greyli/moments
$ cd moments
```Install dependencies with [PDM](https://pdm.fming.dev):
```
$ 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:
* email: `[email protected]`
* password: `moments`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](LICENSE) file for details).