During our day to day we create and run one time code snippets to solve a number of problems. Sometimes these problems come back with a vengeance. It's not always easy to find the scripts that were used for the problem, if they're found at all. Also many times there's not an easy way to comment on the solutions.
With this tool we can save our snippets and let us comment and collaborate on them
- MongoDB (2.4+)
- Python (2.7)
- Virtualenv / Virtualenv Wrapper
-
Start the MongoDB daemon
$ mongod
-
Clone HL Snippet
$ git clone [email protected]:froi/morsel.git
-
Change to the directory
$ cd morsel
-
Set up a virtual environment and activate it
$ virtualenv env $ source env/bin/activate
-
Install Python requirements
$ pip install -r requirements.txt
-
Copy the
config.py.sample
toconfig.py
and change as required$ cp config.py.sample config.py $ vim config.py
-
Run the app
$ python app.py
Point your browser to http://localhost:<port>
and you're good
to go.
- Full Text Search
- Version Control (big maybe)