This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:rack:start [2018/05/22 19:15] – Martijn Luinstra | documentation:rack:start [2022/04/03 14:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| * User authentication through the Cover API | * User authentication through the Cover API | ||
| - | ===== Installation | + | Future improvements: |
| + | * [[https:// | ||
| + | * Escaping values by default in templates. | ||
| + | * Broader coverage of HTML [[https:// | ||
| + | * …and more! Please share your suggestions [[https:// | ||
| + | |||
| + | Rather than providing a fully-featured API, Rack aims to provide just enough functionality to cover the basic needs. Projects with more complicated requirements should extend, subclass and/or override Rack code where needed to add functionality. | ||
| + | ===== Getting Started | ||
| + | |||
| + | ==== Installation | ||
| Clone (or fork or download) the [[https:// | Clone (or fork or download) the [[https:// | ||
| - | ===== Project structure | + | ==== Project structure ==== |
| Projects using Rack adhere to the following structure: | Projects using Rack adhere to the following structure: | ||
| Line 44: | Line 53: | ||
| The '' | The '' | ||
| + | |||
| + | ==== Configuration ==== | ||
| + | |||
| + | A config file '' | ||
| + | |||
| + | ==== Creating views ==== | ||
| + | |||
| + | Now, you're ready to create views. A view is a '' | ||
| + | |||
| + | <file php index.php> | ||
| + | <?php | ||
| + | require_once ' | ||
| + | |||
| + | // Create and run home view | ||
| + | $view = new TemplateView(' | ||
| + | $view-> | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Glossary ==== | ||
| + | |||
| + | * **Committee login**: The internal mnemonic ID of a committee. It can be found as the value of the '' | ||
| + | * **Committee name**: The real name of a committee. Like AC/DCee, IntroCee or StudCee. | ||
| + | * **Cover API**: The API of the Cover website, accessible through https:// | ||
| + | * **Cover session**: The session of a logged in user of the Cover website. | ||
| + | * **Cover website**: Cover' | ||
| + | |||
| + | ===== API Reference ===== | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | ====== Versions ====== | ||
| + | * 1.1 (2019-05-10, | ||
| + | * Added CSV view to '' | ||
| + | * Added optional Sentry support. | ||
| + | * '' | ||
| + | * Various minor improvements/ | ||
| + | * 1.0 (2018-05-26) | ||
| + | * Initial version, based on various projects. | ||
| + | |||