Swagger api doc served by express
A Completed Project to create doc for your api
Usage
for development purpose Do step by step:
-
clone
git clone https://github.com/alikarimii/swagger-doc.git cd swagger-doc npm i
-
first of all add
.env
file in root of project and put config in there## env file PORT=3000 CORS_ORIGIN=your site url
-
after modified
api/swagger/swagger.yaml
and put your api path in therenpm run build
-
start
npm start ## Node.js API server is listening on port 3000
you can use
build
folder to served in server
Docker
- build image
git clone https://github.com/alikarimii/swagger-doc.git cd swagger-doc add env file chmod 710 build.sh ./build
- run image
chmod 710 start.sh ./start
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.