25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dependabot[bot]
a27c11da6a
|
1 년 전 | |
---|---|---|
spice | 4 년 전 | |
.eslintrc | 5 년 전 | |
.flake8 | 5 년 전 | |
.gitignore | 5 년 전 | |
LICENSE | 5 년 전 | |
Pipfile | 5 년 전 | |
Pipfile.lock | 1 년 전 | |
index.html | 5 년 전 | |
main.py | 5 년 전 | |
package.json | 5 년 전 | |
readme.md | 5 년 전 | |
runserver.py | 5 년 전 | |
settings-example.cfg | 5 년 전 | |
spice.service | 5 년 전 | |
tiles.html | 5 년 전 | |
yarn.lock | 5 년 전 |
readme.md
#Spice Spice is a personal file sharing service. It aims to be a simple and clean alternative to cloud.app or dropbox for sharing files with friends.
##Features:
- Upload many files just by dragging and dropping them on to the page.
- Upload files via cut and paste
- Private, public, and limited (viewable by link only) sharing.
- Syntax highlight code views
##Initial setup:
- Checkout this repo
pipenv install
- Copy settings-example.cfg to settings.cfg and update values
- Export flask env vars: export FLASK_APP=spice export FLASK_ENV=development
- Initialize database:
flask init-db
- Create a user:
flask create-user
- Run the dev server:
flask run
For production you will want to use something besides flask to run the server.
This repo includes a spice.service file that uses uwsgi, you can update the
paths and copy that to /lib/systemd/service/
and then you should be able to
do:
systemctl daemon-reload
systemctl enable spice
systemctl start spice
##Todo:
- Markdown rendering
- Handle audio files nicely
- Export endpoint (should zip all files with correct names (when possible)
- File sets so you can easily share multiple files
- note field/custom key
- See if we can tweak the short-id alphabet (remove
-
and_
)