https://github.com/codedynasty-dev/jetpath-sample
A basic project sample for the Jetpath framework, with MongoDB and eCommerce use-case.
https://github.com/codedynasty-dev/jetpath-sample
Last synced: 2 months ago
JSON representation
A basic project sample for the Jetpath framework, with MongoDB and eCommerce use-case.
- Host: GitHub
- URL: https://github.com/codedynasty-dev/jetpath-sample
- Owner: CodeDynasty-dev
- Created: 2025-05-15T17:41:09.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-20T19:33:41.000Z (4 months ago)
- Last Synced: 2025-07-20T21:22:25.780Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jetpath: Cross-runtime Framework Sample
## Modern Web Development, Simplified
Jetpath is a cutting-edge TypeScript framework designed for developers who demand performance, simplicity, and an exceptional developer experience.
### Why Jetpath?
- **High Performance**: Lightning-fast web applications
- **Type Safety**: Robust TypeScript type system
- **Minimal Boilerplate**: Clean, concise code
### Key Features
1. **Intuitive Routing**
Create routes by simply adding files in the `src/app` directory:
```typescript
// Automatically creates a GET /user endpoint
export const GET_user: JetRoute = async (ctx) => {
const user = ctx.state.user;
ctx.send(user);
};
```
2. **Built-in API Documentation**
Secure authentication with minimal configuration:
```typescript
export const POST_o_user_login: JetRoute<{
body: { password: string; email: string };
}> = async (ctx) => {
// Type-safe authentication & Documented automatically
};
use(POST_o_user_login).body((t) => {
return {
email: t.string().email().required(),
password: t.string().required().min(4).max(128),
};
});
```
3. **Flexible API Management**
Easily define and manage api endpoints:
```typescript
export const GET_products: JetRoute = async (ctx) => {
const products = await Product.find();
ctx.send(products);
};
```
### Quick Start
```bash
# Install Jetpath CLI
npx jetpath new-project
# Navigate to the project directory
cd new-project
# Install dependencies
npm install
# Start development server
npm run dev
```
### Core Capabilities
- File-based routing
- Type-safe API development
- Built-in authentication
- Database agnostic
- Serverless deployment ready
### Project Structure
```
src/
├── app/ # Route handlers
├── db/ # Database models
├── main.jet.ts # Application entry point
└── ...
```
### Ecosystem
- Works with multiple frontend frameworks
- Scalable from small projects to enterprise applications
- Easy middleware and plugin integration
### Deployment
Jetpath is deployment ready, you can deploy it on any hosting platform.
this example is deployed on `fly.io` using fly cli.
### Contributing
Contributions are welcome! Check our [contribution guidelines](https://github.com/CodeDynasty-dev/Jetpath/blob/main/contributing.md).
### License
MIT License
### Community
Join our [Discord](https://discord.gg/faqydQASTy) for support and discussions!
---
**Crafted with ❤️ by CodeDynasty.dev**