Skip to content

aria goes overboard with her notes, so there's a server and webpages for notes for classes

Notifications You must be signed in to change notification settings

ariadiamond/Nan-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

favicon.png Nan: an HTTP server

High level goal

aria likes to have really pretty notes and things, and that is what keeps her sane when doing computer science things. She also has grandiose ideas sometimes, so there is a lot of cool ideas that might never happen.

This is named after Nan from Animal Crossing: New Horizions, because she is my favorite villager and I love her dearly.

Table Of Contents


TODO

Immediate Server:

  • Test scripts
    • unit tests
      • Config
      • Access Control
      • PUT
    • functional
      • Config
      • Access Control
      • PUT
  • Rethink security policy/mechanism. What the heck is it right now?

Future Server:

  • Safe PUT requests? (safe folder)
  • POST requests for tracking something (mifilw)
  • Derive index pages from config files

Config

How to make a config file

Example:

Default: [def] # todo
Class: [class] # todo
# Comment
* [name] @ [path]  => file1, file2
           scripts => script.js
           styles  => style.css

* [name] @
      [path] => file1, file2
                file3, file4
      styles => style.css ../style.css
* [path] => file2, file7

Default refers to when there is no name for the constructed page (like the last entry in the example). Class is appended to page title, with a delimiter in between: [name] | [class].

Name it .httpconfig, and place it in the folder you want it.

Files with the extension .md (for Github Flavored Markdown) will be converted to html when rendering the page. To support this, the command pandoc must be installed. At the moment, all other file types are just sent without any processing.

Config TODO

  • Title names
  • Default names
  • Regular Expressions
    • ?
    • *
  • Recursive config

Sources

Markdown Support:

HTML:

CSS:

JavaScript:

Golang:

Python: guess who doesn't know python that well

About

aria goes overboard with her notes, so there's a server and webpages for notes for classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published