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
Masonite is the rapid application Python development framework that strives for elegant, readable, and beautiful syntax. Masonite makes building web applications fun, enjoyable and scalable. Masonite takes much of the pain out of developing web applications from simple payment systems to removing mundane development tasks with a command line companion tool called craft commands. Masonite removes much of the mundane tasks of building web applications by:
17
+
The modern and developer centric Python web framework that strives for an actual batteries included developer tool with a lot of out of the box functionality with an extremely extendable architecture. Masonite is perfect for beginner developers getting into their first web applications as well as experienced devs that need to utilize the full expotential of Masonite to get their applications done.
18
+
19
+
Masonite works hard to be fast and easy from install to deployment so developers can go from concept to creation in as quick and efficiently as possible. Use it for your next SaaS! Try it once and you’ll fall in love.
18
20
19
21
* Having a simple and expressive routing engine
20
22
* Extremely powerful command line helpers called `craft` commands
@@ -28,6 +30,8 @@ Masonite is the rapid application Python development framework that strives for
28
30
29
31
Masonite strives to have extremely comprehensive documentation. All documentation can be [Found Here](https://masoniteframework.gitbooks.io/docs/content/) and would be wise to go through the tutorials there. If you find any discrepencies or anything that doesn't make sense, be sure to comment directly on the documentation to start a discussion!
30
32
33
+
Also be sure to join the [Slack channel](https://masoniteframework.gitbooks.io/docs/content/)!
34
+
31
35
## Linux
32
36
33
37
If you are running on a Linux flavor, you’ll need a few extra packages before you start. You can download these packages by running:
$ pip3 install masonite-cli :: (may need sudo if using UNIX) ::
49
53
$ craft new project
50
54
$ cd project
51
55
$ craft install
52
56
$ craft serve
53
57
```
54
58
55
59
Go to `http://localhost:8000/`
60
+
****
61
+
62
+
<palign="center">
63
+
* * * *
64
+
</p>
65
+
66
+
Not all computers are made the same so you may have some trouble installing Masonite depending on your machine. If you have any issues be sure to read the [Known Installation Issues](https://docs.masoniteproject.com/prologue/known-installation-issues) Documentation.
67
+
68
+
<palign="center">
69
+
* * * *
70
+
</p>
71
+
72
+
****
56
73
57
74
## Contributing
58
75
@@ -82,7 +99,19 @@ You can easily create new applications with `craft`. To create a new application
82
99
83
100
$ craft new project_name
84
101
85
-
**NOTE: If you do not have the craft command, you can run `pip install masonite-cli` which will install `craft` and `craft-vendor` command line tools.**
102
+
****
103
+
104
+
<palign="center">
105
+
* * * *
106
+
</p>
107
+
108
+
NOTE: If you do not have the craft command, you can run `pip install masonite-cli` which will install `craft` and `craft-vendor` command line tools.
109
+
110
+
<palign="center">
111
+
* * * *
112
+
</p>
113
+
114
+
****
86
115
87
116
This command will create a new directory called `project_name` with our new Masonite project.
88
117
@@ -94,7 +123,20 @@ Now we just need to add the pip dependencies. You can run `pip3 install -r "requ
94
123
95
124
$ craft install
96
125
97
-
**NOTE: Python craft commands are essentially wrappers around common mundane tasks. Read the docs about the craft command tool to learn more**
126
+
****
127
+
128
+
<palign="center">
129
+
* * * *
130
+
</p>
131
+
132
+
NOTE: Python craft commands are essentially wrappers around common mundane tasks. Read the docs about the craft command tool to learn more
133
+
134
+
<palign="center">
135
+
* * * *
136
+
</p>
137
+
138
+
****
139
+
98
140
99
141
This will install all the required dependencies to run this framework. Now we can run the `craft` command:
100
142
@@ -109,6 +151,12 @@ If that port is blocked you can specify a port by running:
109
151
Or specify a host by running:
110
152
111
153
$ craft serve --host 192.168.1.283
154
+
155
+
The server can also be auto reloaded by passing in a `-r` flag (short for `--reload`)
156
+
157
+
$ craft serve -r
158
+
159
+
This will reload the server when Masonite detects file changes. This is very similiar to Django.
112
160
113
161
## Hello World
114
162
@@ -127,7 +175,19 @@ ROUTES = [
127
175
]
128
176
```
129
177
130
-
**NOTE: Notice this new interesting string syntax in our route. This will grant our route access to a controller (which we will create below)**
178
+
****
179
+
180
+
<palign="center">
181
+
* * * *
182
+
</p>
183
+
184
+
NOTE: Notice this new interesting string syntax in our route. This will grant our route access to a controller (which we will create below)
185
+
186
+
<palign="center">
187
+
* * * *
188
+
</p>
189
+
190
+
****
131
191
132
192
Since we used a string controller we don't have to import our controller into this file. All imports are done through Masonite on the backend.
0 commit comments