A django application for sharing code snippets.
-
Create a virtual environment
virtualenv venv
-
Start virtual environment
source venv/bin/activate
-
Install requirements
pip install -r requirements
-
Enable Debug for debugging
Go to the
settings.py
file and set the variableDEBUG
to True. -
Migrate DB
python manage.py makemigrations
andpython manage.py migrate
-
Running test server, go to the folder with
manage.py
file and run:python manage.py runserver
This will run the server at localhost.
Contribution are welcome as always. Checkout the existing issues or create issues.
Steps for contributing:
-
Fork and clone the repository
-
If resolving an issue then create a branch with name like
bugfix-#<issue_number>
orenhancement-#<issue_number>
-
After commiting, push the branch to your upstream fork.
-
Create a Pull request to this repository
##GET ###By id domain/api/id.json ###by filename domain/api/filename.json
##POST see json format at CodeShare ###new code file domain/api ###update existing file domain/api/filename or id
####Every Post request will give the new object made or updated ,in response