A simple file sharing service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
dependabot[bot] a27c11da6a
Bump pillow from 6.1.0 to 9.3.0
преди 1 година
spice Fix secure_filename import преди 4 години
.eslintrc Fix table view upload and js преди 5 години
.flake8 Use flask 1.0 and reorganize code преди 5 години
.gitignore Start to build out the log item actions преди 5 години
LICENSE Add some important files, update readme преди 5 години
Pipfile Add some important files, update readme преди 5 години
Pipfile.lock Bump pillow from 6.1.0 to 9.3.0 преди 1 година
index.html Initial refresh work преди 5 години
main.py Add some important files, update readme преди 5 години
package.json Fix table view upload and js преди 5 години
readme.md Add some important files, update readme преди 5 години
runserver.py Add new blog style page преди 5 години
settings-example.cfg Add some important files, update readme преди 5 години
spice.service Add some important files, update readme преди 5 години
tiles.html Initial refresh work преди 5 години
yarn.lock Bump js-yaml from 3.13.0 to 3.13.1 преди 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:

  1. Checkout this repo
  2. pipenv install
  3. Copy settings-example.cfg to settings.cfg and update values
  4. Export flask env vars: export FLASK_APP=spice export FLASK_ENV=development
  5. Initialize database: flask init-db
  6. Create a user: flask create-user
  7. 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 _)