NextPy - Documentation¶
This manual describes the core features and usage of NextPy, a Python web framework inspired by Next.js. Topics include project setup, routing, data handling, and deployment.
Indices and tables¶
—
Getting Started¶
Install the framework, scaffold a project, and start the development server:
pip install nextpy-framework
nextpy create my-app
cd my-app
nextpy dev
The server runs at http://localhost:8000 by default with hot reload.
Project Structure¶
A typical project contains the following top-level directories and files:
`
my-app/
├── pages/ # route definitions and components
├── templates/ # Jinja2 templates
├── public/ # static assets (CSS, JS, images)
├── nextpy.config.py # optional configuration
├── main.py # application entry point
└── .env # environment variables
`
Refer to the linked sections above for detailed explanations of routing, data fetching, APIs, and deployment.