https://github.com/sumpygump/ultraviolet-mvc
A web framework written in C++
https://github.com/sumpygump/ultraviolet-mvc
Last synced: 11 months ago
JSON representation
A web framework written in C++
- Host: GitHub
- URL: https://github.com/sumpygump/ultraviolet-mvc
- Owner: sumpygump
- Created: 2015-03-12T21:39:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-10-05T12:21:30.000Z (over 2 years ago)
- Last Synced: 2025-01-04T14:17:41.802Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ultraviolet MVC
An MVC Web Framework in C++
**Note: This project is in development infancy**
## Components
### CGI Core
The CGI core is functionality that handles low-level components of a CGI (Common Gateway Interface) system, HTTP functionality and basic web application features.
* Headers
* Environment
* Get Request method parsing
* Post Request method parsing
* File Uploads
* Cookies
* Sessions
### View Layer
The view layer will be handled as nested partials with token replacement.
### Framework Proper
* Controllers
* Models
* Views
## Installation and Usage
Checkout the files and run the script `build`. This will create an index.cgi file which should be placed into the folder `web`, which is the apache webroot.
Note that the .htaccess file in the web directory should have the following directive:
```
Options +ExecCGI
AddHandler cgi-script cgi
```
Currently this script in bin/index.cpp shows an example of how to set up the environment, set cookies, store sessions, etc. but doesn't really do a whole lot as far as the framework goes. Eventually we plan to have a router so that all the application code will be handled through index.cgi.