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
Welcome to your first day of learning Nexios! Today, we'll cover the fundamentals and create our first Nexios application.
3
+
## What You'll Learn
4
+
- What Nexios is and its core features
5
+
- How to install Nexios and set up your environment
6
+
- Creating your first Nexios application
7
+
- Understanding the basic project structure
4
8
5
-
## What is Nexios?
9
+
## Core Concepts
6
10
7
-
Nexios is a modern, fast, and flexible Python web framework designed for building APIs and web applications. It features:
8
-
- Async-first architecture
9
-
- Type hints support
10
-
- Intuitive routing
11
-
- Built-in middleware system
12
-
- Extensive plugin ecosystem
11
+
### What is Nexios?
13
12
14
-
## Installation and Setup
13
+
Nexios is a modern, high-performance Python web framework designed for building async APIs and web applications. It combines the best of modern Python features with an intuitive API design.
15
14
16
-
1. Create a new project directory:
15
+
#### Key Features
16
+
- Async-first architecture for high performance
17
+
- Type-safe development with full type hints
18
+
- Intuitive and expressive routing
19
+
- Flexible middleware system
20
+
- Rich plugin ecosystem
21
+
- Modern Python (3.9+) features
22
+
23
+
## Setting Up Your Environment
24
+
25
+
### Prerequisites
26
+
Make sure you have:
27
+
- Python 3.9 or higher
28
+
- pip (Python package manager)
29
+
- A code editor (VS Code recommended)
30
+
31
+
### Installation Steps
32
+
33
+
1. Create a project directory:
17
34
```bash
18
35
mkdir my-nexios-app
19
36
cd my-nexios-app
20
37
```
21
38
22
-
2. Create and activate a virtual environment:
23
-
```bash
39
+
2. Set up a virtual environment:
40
+
::: code-group
41
+
```bash [Linux/Mac]
24
42
python -m venv venv
25
-
source venv/bin/activate # Linux/Mac
26
-
venv\Scripts\activate # Windows
43
+
source venv/bin/activate
27
44
```
28
45
46
+
```bash [Windows]
47
+
python -m venv venv
48
+
venv\Scripts\activate
49
+
```
50
+
:::
51
+
29
52
3. Install Nexios:
30
53
```bash
31
54
pip install nexios
32
55
```
33
56
34
-
## Your First Nexios Application
57
+
::: tip 💡 Best Practice
58
+
Always use a virtual environment to keep your project dependencies isolated!
59
+
:::
60
+
61
+
## Your First Nexios App
62
+
63
+
### Project Structure
64
+
```
65
+
my-nexios-app/
66
+
├── venv/
67
+
└── app.py
68
+
```
69
+
70
+
### Basic Application
35
71
36
-
Let's create a simple "Hello, World!" application:
0 commit comments