Getting started with nene2-python
In this tutorial you will run a Note CRUD API in under 5 minutes.
Prerequisites
- Python 3.12 or later
- uv installed
- Git
1. Clone the repository
bash
git clone https://github.com/hideyukiMORI/nene2-python.git
cd nene2-python2. Install dependencies
bash
uv sync3. Start the development server
bash
uv run uvicorn src.example.app:app --reload --port 8080Open http://localhost:8080/docs in your browser — Swagger UI is ready.
4. Try the API
bash
# Create a note
curl -X POST http://localhost:8080/notes \
-H "Content-Type: application/json" \
-d '{"title": "My first note", "body": "Created with nene2-python"}'
# List notes
curl http://localhost:8080/notes5. Run the tests
bash
uv run pytestAll 167+ tests should pass.
Next steps
- Implement a new domain — walk through the full layer stack using the Tag domain
- Configuration reference — configure a real database or enable auth