This is originally a project in Harvard's CS50W course. You can visit my version here! 🚀
This app is similar to a wiki but utilizing Django's view model template.Entries can be edited in Markdown language and then saved in the server. Currently the parsing into HTML is made by a library called Markdown2, but it supports standard Markdown syntax. There's also a search bar and a random page feature.
- HTML
- CSS
- JavaScript
- Django
- Python Decouple - Stores enviroment variables securely.
- Markdown2 - Parses markdown into HTML
Make sure both python and virtualenv are installed on your OS.
- Fork the project.
- Clone project using
git clone git@github.com:<YOUR-USERNAME>/markdown_wiki.git
. - Run
virtualenv env
thenenv\scripts\activate
. - Once in your virtual enviroment
(env)
, runpip install -r "markdown_wiki\requirements.txt"
. - You need to generate a SECRET_KEY now, in order to do so you have to:
(env)... cd markdown_wiki (env)... markdown_wiki\python >>> from django.core.management.utils import get_random_secret_key >>> SECRET_KEY = get_random_secret_key() >>> exit()
- Create a
.env
file and pasteSECRET_KEY=[NEW_SECRET_KEY]
- Run
python manage.py runserver
All logic contained in Views.py
in the encyclopedia
folder. The actual code is pretty simple and it's commented enough to fully understand what is going on.
This site was deployed using Railway.