https://github.com/yracnet/vite-plugin-api-routes
Create API routes from path directory like to Nextjs
https://github.com/yracnet/vite-plugin-api-routes
Last synced: 6 months ago
JSON representation
Create API routes from path directory like to Nextjs
- Host: GitHub
- URL: https://github.com/yracnet/vite-plugin-api-routes
- Owner: yracnet
- License: mit
- Created: 2022-12-13T14:42:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T02:51:30.000Z (9 months ago)
- Last Synced: 2025-02-19T12:55:54.862Z (8 months ago)
- Language: TypeScript
- Size: 410 KB
- Stars: 38
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-vite - vite-plugin-api-routes - Generate route mapping for API Routes services from the directory tree. (Plugins / Framework-agnostic Plugins)
- awesome-vite - vite-plugin-api-routes - Generate route mapping for API Routes services from the directory tree. (Plugins / Framework-agnostic Plugins)
README
# Project Plugins
This repository contains multiple projects, each providing specific functionality for enhancing development workflows. Below, you'll find the available plugins along with links to their documentation and resources.
## Available Plugins
### [vite-plugin-api-routes](packages/vite-plugin-api-routes/README.md)
A Vite plugin that enhances API routing by leveraging directory structure to automatically generate API routes.
- **Description:** `vite-plugin-api-routes` simplifies API route creation by converting the directory structure into route rules. It's perfect for projects that require dynamic API routes, inspired by frameworks like Next.js and Remix.
- **Installation:**```
yarn add vite-plugin-api-routes
```- **Documentation and Resources:**
- [NPM Package](https://www.npmjs.com/package/vite-plugin-api-routes)
- [GitHub Repository](https://github.com/yracnet/vite-plugin-api-routes)
- [Dev.to Article: Enhancing API Routing in Vite.js](https://dev.to/yracnet/enhancing-api-routing-in-vitejs-with-vite-plugin-api-p39)
- [Dev.to Article: CRUD User API + GUI in ViteJS](https://dev.to/yracnet/crud-user-api-gui-in-vitejs-df8)
- [Tutorial Legacy](./packages/plugin/tutorial-legacy.md)
- [Tutorial Isolated](./packages/plugin/tutorial-isolated.md)
- [Tutorial CRUD](./packages/plugin/tutorial-crud.md)---