This is a project for CS50 Web Programming with Python and Javascript
A basic wiki application that allows users to create and edit web pages using markdown.
Link to the live demo: https://wiki-project.up.railway.app
- index
- search
- new entry
- random entry
- entry
- title as variable
- edit
- title as variable + "edit"
- SearchForm
- form field for search bar
- createForm
- Form fields to create new entries
- EditForm
- Form fields to edit current entries
- only difference is that it does not include 'title' as an option
- index
- entry
- view for a specific entry
- pass in title
- if entry does not exist, render error template
- search
- searches through entries
- if a search matches, entry is displayed
- partial matches are displayed in a list
- no results display error page
- invalid search displays error page
- new
- renders new entry html page and form
- when form is submitted:
- if entry exists, error is shown
- if not then entry is saved
- invalid submissions display error
- edit
- renders edit entry page
- current content of entry is populated
- on form submission:
- saves the updated content to the same entry
- renders edit entry page
- random
- automatically picks an entry from the current list of entries
- redirects to selected entry
- layout.html
- html layout for app
- edit.html
- for editing current wiki pages
- new.html
- for creating new wiki pages
- entry.html
- to display entries
- search.html
- displays search results
- index.html
- homepage for app
- displays list of all entries
- error.html
- used to display various error messages
Static files were not changed from distribution code.