/nextjs-now-swagger

An example for using next.js, now and swagger together

Primary LanguageJavaScript

Example app with swagger

This example features how to use swagger with now deployment as the API documentation within a Next.js app.

Deploy your own

Deploy the example using ZEIT Now:

Deploy with ZEIT Now

How to use

Download manually

Download the example:

git clone https://github.com/abdullahceylan/nextjs-now-swagger.git
cd nextjs-now-swagger

Install

npm install
# or
yarn

Run

Next.js:

npm run dev
# or
yarn dev

API:

npm run api
# or
yarn api

You can access Swagger Docs by using http://localhost:9999/api-docs/

Deploy it to the cloud with ZEIT Now (Documentation).