Skip to content

CSSS Blog backend #54

@EarthenSky

Description

@EarthenSky

We wanted a blog, so we need to add support for it.

I imagine we'll want to store everything in a database table, then dynamically serve content based on the page. We'll also have a page for searching through

This task will have several steps:

  • Create a table in the database to store blog entries
    • this table should store:
      • html contents as a string
      • date of creation & date of last edit
      • computing id of creator (this is what we use as a foreign key to access user accounts)
      • (unique) title of article
      • string containing a list of comma separated tags
    • create crud functions for:
      • creating new blog entries
      • getting a blog entry using it's title
      • getting a set of blog titles by date range & tag (paginated, say 50 per page for starters)
      • updating blog data.
  • Create an endpoint api.sfucsss.org/blog/<title> for generating a directly servable webpage given the (unique) title of the article
    • TODO: @micahdbak how should this be integrated with the frontend? What are your thoughts? I'd prefer to serve the files directly rather than use js to dynamically build the webpage.
  • Migrate all past "announcements" from https://sfucsss.org/ to the database
  • Update the nginx config so that the backend endpoint is being served directly
  • Add support for fuzzy keyword search of contents (!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions