This is an example project built with Nova. It demonstrates how to quickly set up an API with Nova, including integrated OpenAPI documentation.
Before you get started, ensure you have:
- Go 1.23 or higher
Getting started with the Nova Example Project is straightforward:
-
Clone the repository:
git clone https://github.com/xlc-dev/novaexample.git cd novaexample
-
Build the binary:
go build -o novaexample
This will create an executable binary named
novaexample
in your project directory.
Once built, you can run the API with customizable host and port settings:
-
Default (host:
localhost
, port:8080
):./novaexample
-
Custom host and port:
./novaexample --host=0.0.0.0 --port=3000
Replace
0.0.0.0
with your desired host and3000
with your preferred port.
Nova comes with excellent OpenAPI integration.
-
View the OpenAPI JSON:
Access the raw OpenAPI specification at: http://localhost:8080/openapi.json
-
Explore with Swagger UI:
For a beautiful and interactive API documentation experience, visit the Swagger UI at: http://localhost:8080/docs
Enjoy exploring the Nova Example Project! If you have any questions or feedback, feel free to open an issue.
This project is licensed under the MIT License. See the LICENSE file for more details.