Skip to content

Kavoyaa/SnippyShare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnippyShare

A simple website to share snippets of code (work in progress).

Website preview

Features

-Generating URL to store code snippets
-Syntax highlighting
expect more features soon!

Running locally

Cloning the repo

git clone https://github.com/Kavoyaa/SnippyShare.git

Changing directory

cd SnippyShare

Setting up .env file

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.

Installing required packages

pip install -r requirements.txt

Creating table(s) in database using Python prompt

python3
>>> from SnippyShare import app, db
>>> app.app_context().push()
>>> db.create_all()
>>> exit()

alternatively, if python3 doesn't work, try using python instead.

Running the application

flask run

The application should start running in http://localhost:5000.