mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Merge pull request #73 from CrowCpp/moredocs
Updated all URLs for migration and to fix mkdocs
This commit is contained in:
commit
7d9e64a278
@ -21,8 +21,8 @@ env:
|
||||
- secure: "CQRYHWlg/WDu5DBUeDwGo+rPeOofN08DhiLUNlLtZjMWaRyP0Cop1qVaFs8ESOkYiWek2MdpvjZud+7hL+yx2ogvNx4SfHpUMCDKYgcX+YQ9MmYwabvoKq8N6KVXE3lbPp549TonHdDuNCWNKRniNjYtrij5J+IiIiT8/6Txo2p9RWk6YSUTdXJ9YrfuWMtRuF5uo9SHGyujv8pOJKedrwWoSBbHT44jnwfHMVe/C8jgjwlrJ9N3iXOtsG6sj+UTS8vOpL+jpBONEbBfHgSFU57I7IFNdPQbSObpVwG9geOAHT7IQQyQ9hp2AJoFxxVURB5SzqztDDpQ0XIF76vuH9tA/fF2pwDsLRmcLR8JU1TCmQgvnlYD0+Or9S1Dq0tQME5AP+21Hk2zVcGdbgQP7XWix758F0vpOXa4PXw8TmAjP2jKyAMHlzR3icr3+OmKSK3uXMMt2HSMOJQ+JvFxr//DM493i/VGyeY25/zu3A9RstiE+1d82Fi9xKOmMf4smvSkjOgT0b727jqNbNe6CvEKQUmqHabzYRQzUVz6WPVDHBxZP7AiKmZIVQXYnDsVXywStkSoxxY5En6XKpq0GR3bIVtUMORgZPoZi7Jni+/4EckcYH8g9mpsQf9tPRcOZ2WIvt5gqp2MZuwBLBRcbxihuECfBscqdeA0oDU5AZw="
|
||||
- GH_REPO_NAME: crow
|
||||
- DOXYFILE: $TRAVIS_BUILD_DIR/Doxyfile
|
||||
- GH_REPO_REF: github.com/mrozigor/crow.git
|
||||
- THEME_REPO_REF: github.com/mrozigor/darxygen.git
|
||||
- GH_REPO_REF: github.com/crowcpp/crow.git
|
||||
- THEME_REPO_REF: github.com/crowcpp/darxygen.git
|
||||
|
||||
|
||||
addons:
|
||||
|
14
README.md
14
README.md
@ -2,9 +2,9 @@
|
||||
|
||||
<h4 align="center">A Fast and Easy to use microframework for the web.</h4>
|
||||
<p align="center">
|
||||
<a href="https://travis-ci.com/mrozigor/crow"><img src="https://travis-ci.com/mrozigor/crow.svg?branch=master" alt="Build Status"></a>
|
||||
<a href="https://coveralls.io/github/mrozigor/crow?branch=master"><img src="https://coveralls.io/repos/github/mrozigor/crow/badge.svg?branch=master" alt="Coverage Status"></a>
|
||||
<a href="https://mrozigor.github.io/crow"><img src="https://img.shields.io/badge/-Documentation-informational" alt="Documentation"></a>
|
||||
<a href="https://travis-ci.com/crowcpp/crow"><img src="https://travis-ci.com/crowcpp/crow.svg?branch=master" alt="Build Status"></a>
|
||||
<a href="https://coveralls.io/github/crowcpp/crow?branch=master"><img src="https://coveralls.io/repos/github/crowcpp/crow/badge.svg?branch=master" alt="Coverage Status"></a>
|
||||
<a href="https://crowcpp.github.io/crow"><img src="https://img.shields.io/badge/-Documentation-informational" alt="Documentation"></a>
|
||||
<a href="https://gitter.im/crowfork/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/crowfork/community.svg" alt="Gitter"></a>
|
||||
</p>
|
||||
|
||||
@ -26,10 +26,10 @@ Crow is a C++ microframework for running web services. It uses routing similar t
|
||||
- Uses modern C++ (11/14)
|
||||
|
||||
### Still in development
|
||||
- [HTTP/2 support](https://github.com/mrozigor/crow/issues/8)
|
||||
- [HTTP/2 support](https://github.com/crowcpp/crow/issues/8)
|
||||
|
||||
## Documentation
|
||||
Available [here](https://mrozigor.github.io/crow).
|
||||
Available [here](https://crowcpp.github.io/crow).
|
||||
|
||||
## Examples
|
||||
|
||||
@ -94,10 +94,10 @@ CROW_ROUTE(app, "/add_json")
|
||||
});
|
||||
```
|
||||
|
||||
More examples can be found [here](https://github.com/mrozigor/crow/tree/master/examples).
|
||||
More examples can be found [here](https://github.com/crowcpp/crow/tree/master/examples).
|
||||
|
||||
## Setting Up / Building
|
||||
Available [here](https://mrozigor.github.io/crow/getting_started/setup).
|
||||
Available [here](https://crowcpp.github.io/crow/getting_started/setup).
|
||||
|
||||
|
||||
### Attributions
|
||||
|
@ -20,7 +20,7 @@ This page explains how to set Crow up for use with your project.
|
||||
Download boost from [here](https://www.boost.org/) and install it
|
||||
|
||||
##Downloading
|
||||
Either run `git clone https://github.com/mrozigor/crow.git` or download `crow_all.h` from the releases section. You can also download a zip of the project on github.
|
||||
Either run `git clone https://github.com/crowcpp/crow.git` or download `crow_all.h` from the releases section. You can also download a zip of the project on github.
|
||||
|
||||
##Includes folder
|
||||
1. Copy the `/includes` folder to your project's root folder.
|
||||
|
@ -12,7 +12,7 @@ int main()
|
||||
}
|
||||
```
|
||||
The App (or SimpleApp) class organizes all the different parts of Crow and provides the developer (you) a simple interface to interact with these parts.
|
||||
For more information, please go [here](/guides/app).
|
||||
For more information, please go [here](../../guides/app).
|
||||
|
||||
##3. Adding routes
|
||||
Once you have your app, the next step is to add routes (or endpoints). You can do so with the `CROW_ROUTE` macro.
|
||||
@ -21,7 +21,7 @@ CROW_ROUTE(app, "/")([](){
|
||||
return "Hello world";
|
||||
});
|
||||
```
|
||||
For more details on routes, please go [here](/guides/routes).
|
||||
For more details on routes, please go [here](../../guides/routes).
|
||||
|
||||
#4. Running the app
|
||||
Once you're happy with how you defined all your routes, you're going to want to instruct Crow to run your app. This is done using the `run()` method.
|
||||
|
@ -25,5 +25,5 @@ app.bindaddr(192.168.1.2)
|
||||
```
|
||||
<br><br>
|
||||
|
||||
For more info on middlewares, check out [this page](/guides/middleware).<br><br>
|
||||
For more info on what functions are available to a Crow app, go [here](/reference/classcrow_1_1_crow.html).
|
||||
For more info on middlewares, check out [this page](../middleware).<br><br>
|
||||
For more info on what functions are available to a Crow app, go [here](../../reference/classcrow_1_1_crow.html).
|
||||
|
@ -24,6 +24,6 @@ The types of values that `wvalue` can take are as follows:<br>
|
||||
- `Object`: from type `crow::json::wvalue`.<br>
|
||||
This last type means that `wvalue` can have keys, this is done by simply assigning a value to whatever string key you like, something like `#!cpp wval["key1"] = val1;`. Keep in mind that val1 can be any of the above types.<br><br>
|
||||
|
||||
A JSON wvalue can be returned directly inside a route handler, this will cause the `content-type` header to automatically be set to `Application/json` and the JSON value will be converted to string and placed in the response body. For more information go to [Routes](/guides/routes).<br><br>
|
||||
A JSON wvalue can be returned directly inside a route handler, this will cause the `content-type` header to automatically be set to `Application/json` and the JSON value will be converted to string and placed in the response body. For more information go to [Routes](../routes).<br><br>
|
||||
|
||||
For more info on write values go [here](/reference/classcrow_1_1json_1_1wvalue.html).
|
||||
For more info on write values go [here](../../reference/classcrow_1_1json_1_1wvalue.html).
|
||||
|
@ -17,4 +17,4 @@ A message can be created either by defining the headers, boundary, and individua
|
||||
Once a multipart message has been made, the individual parts can be accessed throught `mpmes.parts`, `parts` is an `std::vector`, so accessing the individual parts should be straightforward.<br>
|
||||
In order to access the individual part's name or filename, something like `#!cpp mpmes.parts[0].headers[0].params["name"]` sould do the trick.<br><br>
|
||||
|
||||
For more info on Multipart messages, go [here](/reference/namespacecrow_1_1multipart.html)
|
||||
For more info on Multipart messages, go [here](../../reference/namespacecrow_1_1multipart.html)
|
||||
|
@ -27,7 +27,7 @@ Handlers can also use information from the request by adding it as a parameter `
|
||||
|
||||
You can also access the url parameters in the handler using `#!cpp req.url_params.get("param_name");`. If the parameter doesn't exist, `nullptr` is returned.<br><br>
|
||||
|
||||
For more information on `crow::request` go [here](/reference/structcrow_1_1request.html).<br><br>
|
||||
For more information on `crow::request` go [here](../../reference/structcrow_1_1request.html).<br><br>
|
||||
|
||||
###Response
|
||||
Crow also provides the ability to define a response in the parameters by using `#!cpp ([](const crow::request& req, crow::response& res){...})`.<br>
|
||||
@ -37,9 +37,9 @@ Please note that in order to return a response defined as a parameter you'll nee
|
||||
|
||||
Alternatively, you can define the response in the body and return it (`#!cpp ([](){return crow::response()})`).<br>
|
||||
|
||||
For more information on `crow::response` go [here](/reference/structcrow_1_1response.html).<br><br>
|
||||
For more information on `crow::response` go [here](../../reference/structcrow_1_1response.html).<br><br>
|
||||
|
||||
###return statement
|
||||
A `crow::response` is very strictly tied to a route. If you can have something in a response constructor, you can return it in a handler.<br><br>
|
||||
The main return type is `std::string`. although you could also return a `crow::json::wvalue` directly. ***(Support for more data types including third party libraries is coming soon)***<br><br>
|
||||
For more information on the specific constructors for a `crow::response` go [here](/reference/structcrow_1_1response.html).
|
||||
For more information on the specific constructors for a `crow::response` go [here](../../reference/structcrow_1_1response.html).
|
||||
|
@ -1 +1,3 @@
|
||||
https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/
|
||||
|
||||
***HELP NEEDED***
|
||||
|
@ -15,7 +15,7 @@ The HTML page (including the mustache tags). It is usually loaded into `crow::mu
|
||||
For more information on how to formulate a template, see [this mustache manual](http://mustache.github.io/mustache.5.html).
|
||||
|
||||
###Context
|
||||
A JSON object containing the tags as keys and their values. `crow::mustache::context` is actually a [crow::json::wvalue](/guides/json#wvalue).
|
||||
A JSON object containing the tags as keys and their values. `crow::mustache::context` is actually a [crow::json::wvalue](../json#wvalue).
|
||||
|
||||
##Returning a template
|
||||
To return a mustache template, you need to load a page using `#!cpp auto page = crow::mustache::load("path/to/template.html");`, keep in mind that the path is relative to the templates directory.<br>
|
||||
|
@ -28,4 +28,4 @@ CROW_ROUTE(app, "/ws")
|
||||
});
|
||||
```
|
||||
<br><br>
|
||||
For more info go [here](/reference/classcrow_1_1_web_socket_rule.html).
|
||||
For more info go [here](../../reference/classcrow_1_1_web_socket_rule.html).
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<h4 align="center">A Fast and Easy to use microframework for the web.</h4>
|
||||
<p align="center">
|
||||
<a href="https://travis-ci.com/mrozigor/crow"><img src="https://travis-ci.com/mrozigor/crow.svg?branch=master" alt="Build Status"></a>
|
||||
<a href="https://coveralls.io/github/mrozigor/crow?branch=master"><img src="https://coveralls.io/repos/github/mrozigor/crow/badge.svg?branch=master" alt="Coverage Status"></a>
|
||||
<a href="https://mrozigor.github.io/crow"><img src="https://img.shields.io/badge/-Documentation-informational" alt="Documentation"></a>
|
||||
<a href="https://travis-ci.com/crowcpp/crow"><img src="https://travis-ci.com/crowcpp/crow.svg?branch=master" alt="Build Status"></a>
|
||||
<a href="https://coveralls.io/github/crowcpp/crow?branch=master"><img src="https://coveralls.io/repos/github/crowcpp/crow/badge.svg?branch=master" alt="Coverage Status"></a>
|
||||
<a href="https://crowcpp.github.io/crow"><img src="https://img.shields.io/badge/-Documentation-informational" alt="Documentation"></a>
|
||||
<a href="https://gitter.im/crowfork/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/crowfork/community.svg" alt="Gitter"></a>
|
||||
</p>
|
||||
|
||||
@ -27,10 +27,10 @@ Crow is a C++ microframework for running web services. It uses routing similar t
|
||||
- Uses modern C++ (11/14)
|
||||
|
||||
### Still in development
|
||||
- [HTTP/2 support](https://github.com/mrozigor/crow/issues/8)
|
||||
- [HTTP/2 support](https://github.com/crowcpp/crow/issues/8)
|
||||
|
||||
## Documentation
|
||||
Available [here](https://mrozigor.github.io/crow).
|
||||
Available [here](https://crowcpp.github.io/crow).
|
||||
|
||||
## Examples
|
||||
|
||||
@ -95,7 +95,7 @@ CROW_ROUTE(app, "/add_json")
|
||||
});
|
||||
```
|
||||
|
||||
More examples can be found [here](https://github.com/mrozigor/crow/tree/master/examples).
|
||||
More examples can be found [here](https://github.com/crowcpp/crow/tree/master/examples).
|
||||
|
||||
## Setting Up / Building
|
||||
Available [here](https://mrozigor.github.io/crow/getting_started/setup).
|
||||
Available [here](https://crowcpp.github.io/crow/getting_started/setup).
|
||||
|
@ -1,9 +1,9 @@
|
||||
site_name: Crow
|
||||
|
||||
# Repository
|
||||
repo_name: mrozigor/crow
|
||||
repo_url: https://github.com/mrozigor/crow
|
||||
site_url: https://mrozigor.github.io/crow
|
||||
repo_name: crowcpp/crow
|
||||
repo_url: https://github.com/crowcpp/crow
|
||||
site_url: https://crowcpp.github.io/crow
|
||||
edit_uri: ""
|
||||
|
||||
theme:
|
||||
@ -49,7 +49,7 @@ nav:
|
||||
extra:
|
||||
social:
|
||||
- icon: fontawesome/brands/github
|
||||
link: https://github.com/mrozigor/crow
|
||||
link: https://github.com/crowcpp/crow
|
||||
- icon: fontawesome/brands/gitter
|
||||
link: https://gitter.im/crowfork/community
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user