You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-11Lines changed: 49 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
14
14
<h2align="center">An Elegant Golang Web Framework</h2>
15
15
16
-
Goyave is a progressive and accessible web application framework, aimed at making development easy and enjoyable. It has a philosophy of cleanliness and conciseness to make programs more elegant, easier to maintain and more focused.
16
+
Goyave is a progressive and accessible web application framework focused on APIs, aimed at making development easy and enjoyable. It has a philosophy of cleanliness and conciseness to make programs more elegant, easier to maintain and more focused.
17
17
18
18
<table>
19
19
<tr>
@@ -32,7 +32,7 @@ Goyave is a progressive and accessible web application framework, aimed at makin
32
32
</tr>
33
33
</table>
34
34
35
-
Most golang frameworks for web development don't have a strong directory structure nor conventions to make applications have a uniform architecture and limit redundancy. This makes it difficult to work with them on different projects. In companies, having a well-defined and documented architecture helps new developers integrate projects faster, and reduces the time needed for maintaining them. For open source projects, it helps newcomers understanding the project and makes it easier to contribute.
35
+
Most golang frameworks for web development don't have a strong directory structure nor conventions to make applications have a uniform architecture and limit redundancy. This makes it difficult to work with them on different projects. In companies, having a well-defined and documented architecture helps new developers integrate projects faster, and reduces the time needed for maintaining them. For open source projects, it helps newcomers understanding the project and makes it easier to contribute. With Goyave, expect a full package with minimum setup.
36
36
37
37
## Table of contents
38
38
@@ -102,6 +102,7 @@ This section's goal is to give a **brief** look at the main features of the fram
102
102
-[Testing](#testing)
103
103
-[Status handlers](#status-handlers)
104
104
-[CORS](#cors)
105
+
-[Authentication](#authentication)
105
106
106
107
### Hello world from scratch
107
108
@@ -111,7 +112,7 @@ The example below shows a basic `Hello world` application using Goyave.
**Learn more about CORS in the [documentation](https://system-glitch.github.io/goyave/guide/advanced/cors.html).**
598
599
600
+
### Authentication
601
+
602
+
Goyave provides a convenient and expandable way of handling authentication in your application. Authentication can be enabled when registering your routes:
Authentication is handled by a simple middleware calling an **Authenticator**. This middleware also needs a model, which will be used to fetch user information on a successful login.
614
+
615
+
Authenticators use their model's struct fields tags to know which field to use for username and password. To make your model compatible with authentication, you must add the `auth:"username"` and `auth:"password"` tags:
When a user is successfully authenticated on a protected route, its information is available in the controller handler, through the request `User` field.
**Learn more about authentication in the [documentation](https://system-glitch.github.io/goyave/guide/advanced/authentication.html).**
636
+
599
637
## Contributing
600
638
601
639
Thank you for considering contributing to the Goyave framework! You can find the contribution guide in the [documentation](https://system-glitch.github.io/goyave/guide/contribution-guide.html).
<divid="app" data-server-rendered="true"><divclass="theme-container"><divclass="theme-default-content"><h1>404</h1><blockquote>That's a Four-Oh-Four.</blockquote><ahref="/goyave/" class="router-link-active">
0 commit comments