<commit_before>i-tide
======

As the Norwegian rules for when it is allowed to sell alcoholic beverages in 
stores and in [_Vinmonopolet_](http://www.vinmonopolet.no/) are quite 
complicated, I decided to steal  [<NAME>](https://github.com/nuth)'s 
original idea and implemented a nifty calendar app to help me keep track of 
the sales hours.

However, the original app proved hard to maintain and wasn't really flexible, 
and since I wanted to to a micro web framework in PHP for fun, I made this new
RESTy back-end. It's a overkill for something as simple, but it is a fun toy
project as I don't get a lot of time to do web development any more. 

The name _i tide_ is Norwegian for _in time_.

Current status
--------------
The application is running here: http://heim.ifi.uio.no/jonassm/i-tide/

Please note that it isn't quite finished yet, as seen in the following
TODO list:
 - [x] REST-like back-end
   - [x] Status end-point
   - [x] Sales hours end-point
   - [x] Holidays list end-point
   - [x] Month end-point
   - [ ] Week end-point
 - [ ] Error handling
   - [ ] Debug output
   - [ ] Client feedback
   - [ ] Error logging
 - [ ] Flexible deployment script
   - [ ] Dynamic configuration of routes
   - [ ] Symbolic link creation
   - [ ] `.htaccess` generation
 - [ ] Calendar UI (front-end)
   - [ ] Bootstrap CSS
   - [ ] Responsive CSS
   - [ ] JavaScript AJAX
 - [ ] Security testing
   - [ ] Direct file access
   - [ ] Request injection


Calendar UI
-----------
The calendar-like front-end is currently under development. It will have a 
similar functionality as the old-one, but it will also have live countdown
timers.

I will try to make it with a responsive design, as the old version didn't 
quite work on small screens such as mobile phones.

RESTy API<commit_msg>Some additional TODOs<commit_after>i-tide
======

As the Norwegian rules for when it is allowed to sell alcoholic beverages in 
stores and in [_Vinmonopolet_](http://www.vinmonopolet.no/) are quite 
complicated, I decided to steal  [<NAME>](https://github.com/nuth)'s 
original idea and implemented a nifty calendar app to help me keep track of 
the sales hours.

However, the original app proved hard to maintain and wasn't really flexible, 
and since I wanted to to a micro web framework in PHP for fun, I made this new
RESTy back-end. It's a overkill for something as simple, but it is a fun toy
project as I don't get a lot of time to do web development any more. 

The name _i tide_ is Norwegian for _in time_.

Current status
--------------
The application is running here: http://heim.ifi.uio.no/jonassm/i-tide/

Please note that it isn't quite finished yet, as seen in the following
TODO list:
 - [x] REST-like back-end
   - [x] Status view (`/res/status`)
   - [ ] Time left (`/res/timeleft`)
   - [x] Sales hours (`/res/hours/[YYYY-MM-DD|today|tomorrow]`)
   - [x] Holidays list (`/res/holidays/[YYYY]`)
   - [x] Month view (`/res/month/[YYYY-MM]`)
   - [ ] Week view (`/res/week/[YYYY-<weeknumber>]`)
   - [ ] Upcoming (`/res/upcoming/[YYYY-MM-DD|today|tomorrow]`)
   - [x] API descriptor view (`/res/resources`)
 - [ ] Calendar UI (front-end)
   - [ ] Bootstrap CSS
   - [ ] Responsive design
   - [ ] JavaScript AJAX
 - [ ] Error handling
   - [ ] Debug output
   - [ ] Client feedback
   - [ ] Error logging
 - [ ] Flexible deployment script
   - [ ] Dynamic configuration of routes
   - [ ] Symbolic link creation
   - [ ] `.htaccess` generation
 - [ ] Security testing
   - [ ] Direct file access
   - [ ] Request injection


Calendar UI
-----------
The calendar-like front-end is currently under development. It will have a 
similar functionality as the old-one, but it will also have live countdown
timers.

I will try to make it with a responsive design, as the old version didn't 
quite work on small screens such as mobile phones.

RESTy API
{'fraction_non_alphanumeric': 0.10814315352697096, 'fraction_numerical': 0.0, 'mean_word_length': 2.9968911917098446, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1478246', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1148, 'n_words': 500}