aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-13Add sessionsHEADmasterJohn Ankarström
2021-03-03web: Create admin sub-interfaceJohn Ankarström
2021-03-03web: Ensure date is right in post URLJohn Ankarström
2021-03-03Add 'url' field to config tableJohn Ankarström
2021-03-03Add 'user' modelJohn Ankarström
2021-03-02Add 'post' and 'not_found' viewsJohn Ankarström
2021-03-02Add slug fieldJohn Ankarström
2021-03-02Load models and sub-interfaces manually insteadJohn Ankarström
I realized that this is more flexible, as it allows the user to comment out whatever models/sub-interfaces they don't want to use. Adding a new model or sub-interface requires a tiny bit more work, but I think it's worth it.
2021-03-02Require ruby models and http sub-interfaces dynamicallyJohn Ankarström
This makes it easier to add/remove models/sub-interfaces. At the same time, it is very clear what is happening.
2021-03-02Add new interfaces tree, remake database code as 'ruby' interfaceJohn Ankarström
This follows the directory structure outlined in my previous commit message.
2021-03-02Add simple web interfaceJohn Ankarström
The structure is preliminary. It might be a better idea to start Sinatra in a main script, which decides what interface to use. The question is whether non-Sinatra interfaces should be supported. Most will likely use Sinatra, but perhaps not all. With that in mind, how should it be decided which interface to use? The best idea is probably to have a protocols directory, with one script per protocol. http.rb would be the HTTP server, using Sinatra, while ftp.rb or whatever could be run alongside it. Alternatively, there could be the following structure: interfaces/ - http/ - http.rb - web/ - web.rb - views/ - admin/ - rss/ - ftp/ - ftp.rb That would probably be the cleanest implementation.
2021-03-02Rename db directory to modelsJohn Ankarström
2021-03-01Update READMEJohn Ankarström
2021-03-01Add .gitignoreJohn Ankarström
2021-03-01Add ActiveRecord models and migrationsJohn Ankarström
2021-03-01Add READMEJohn