A website featuring a cloud drive and an online shop.
Project description
nut_cloud
an online shop and a cloud drive using SQLite, Flask as the backend and the Bootstrap framework to ameliorate the appearance of the frontend.
Usage
The first time
pip install nut-cloud
-
- For Linux/macos/BSDs:
$ export FLASK_APP="nut_cloud"
- For Windows Powershell:
$ $env:FLASK_APP="nut_cloud"
- For Linux/macos/BSDs:
$ flask init-db
(Only needed on the first time running nut_cloud)$ flask run
Later
$ python -c 'import nut_cloud; nut_cloud.create_app().run()'
CAUTION
You need to configure the SECRET_KEY
, WEBHOOK_SECRET_KEY
and the HOSTNAME
yourself!
You can put a config.py
in the app instance folder to configure these settings.
Auto deploy
You can configure your WEBHOOK_SECRET_KEY
to match the secret key of Github Webhooks,
then you can use Systemd to monitor file changes under {instance path}/restart/
and
restart the uwsgi
server each time any file is changed.
Language
Simplified Chinese
License
Copyright (c) 2018-2019 Chijun Sima, Yixue Zhong
Licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nut_cloud-19.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4481c940afa95626ec7790b2903d4739f84ee90b015787be36b589956d070f32 |
|
MD5 | aed2601f33f5ac92fc7e5b6f9cc7aa48 |
|
BLAKE2b-256 | cfa1aced1455ed389dab69462672e07e89a743b55a0c97592169e172e4517692 |