Skip to content

Commit 5aa7000

Browse files
committed
first sample commit
0 parents  commit 5aa7000

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

README.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Jetpath: Cross-runtime Framework
2+
3+
## Modern Web Development, Simplified
4+
5+
Jetpath is a cutting-edge TypeScript framework designed for developers who demand performance, simplicity, and an exceptional developer experience.
6+
7+
### Why Jetpath?
8+
9+
- **High Performance**: Lightning-fast web applications
10+
- **Type Safety**: Robust TypeScript type system
11+
- **Minimal Boilerplate**: Clean, concise code
12+
13+
### Key Features
14+
15+
1. **Intuitive Routing**
16+
Create routes by simply adding files in the `src/app` directory:
17+
18+
```typescript
19+
// Automatically creates a GET /user endpoint
20+
export const GET_user: JetFunc = async (ctx) => {
21+
const user = ctx.state.user;
22+
ctx.send(user);
23+
};
24+
```
25+
26+
2. **Built-in API Documentation**
27+
Secure authentication with minimal configuration:
28+
29+
```typescript
30+
export const POST_o_user_login: JetFunc<{
31+
body: { password: string; email: string };
32+
}> = async (ctx) => {
33+
// Type-safe authentication & Documented automatically
34+
};
35+
use(POST_o_user_login).body((t) => {
36+
return {
37+
email: t.string().email().required(),
38+
password: t.string().required().min(4).max(128),
39+
};
40+
});
41+
```
42+
43+
3. **Flexible API Management**
44+
Easily define and manage api endpoints:
45+
46+
```typescript
47+
export const GET_products: JetFunc = async (ctx) => {
48+
const products = await Product.find();
49+
ctx.send(products);
50+
};
51+
```
52+
53+
### Quick Start
54+
55+
```bash
56+
# Install Jetpath CLI
57+
npx jetpath new-project
58+
59+
# Navigate to the project directory
60+
cd new-project
61+
62+
# Install dependencies
63+
npm install
64+
65+
# Start development server
66+
npm run dev
67+
```
68+
69+
### Core Capabilities
70+
71+
- File-based routing
72+
- Type-safe API development
73+
- Built-in authentication
74+
- Database agnostic
75+
- Serverless deployment ready
76+
77+
### Project Structure
78+
79+
```
80+
src/
81+
├── app/ # Route handlers
82+
├── db/ # Database models
83+
├── main.jet.ts # Application entry point
84+
└── ...
85+
```
86+
87+
### Ecosystem
88+
89+
- Works with multiple frontend frameworks
90+
- Scalable from small projects to enterprise applications
91+
- Easy middleware and plugin integration
92+
93+
### Deployment
94+
95+
Jetpath is deployment ready, you can deploy it on any hosting platform.
96+
this example is deployed on `fly.io` using fly cli.
97+
98+
### Contributing
99+
100+
Contributions are welcome! Check our [contribution guidelines](https://github.com/CodeDynasty-dev/Jetpath/blob/main/contributing.md).
101+
102+
### License
103+
104+
MIT License
105+
106+
### Community
107+
108+
Join our [Discord](https://discord.gg/faqydQASTy) for support and discussions!
109+
110+
---
111+
112+
**Crafted with ❤️ by CodeDynasty.dev**

0 commit comments

Comments
 (0)