A simple website to share snippets of code (work in progress).
-Generating URL to store code snippets
-Syntax highlighting
expect more features soon!
git clone https://github.com/Kavoyaa/SnippyShare.git
cd SnippyShare
Create a file named .env
and put the data in it in the following format:
SECRET_KEY=your_secret_key
DATABASE_URL=database_url
For testing purposes, you can try putting DATABASE_URL=sqlite:///site.db
. The database will be stored at instance/site.db in later steps.
pip install -r requirements.txt
python3
>>> from SnippyShare import app, db
>>> app.app_context().push()
>>> db.create_all()
>>> exit()
alternatively, if python3
doesn't work, try using python
instead.
flask run
The application should start running in http://localhost:5000
.