项目作者: echelon-solutions

项目描述 :
A portable Vagrant environment for running swagger-node to quickly create APIs.
高级语言:
项目地址: git://github.com/echelon-solutions/swagger-node-vagrant.git
创建时间: 2017-03-01T17:43:09Z
项目社区:https://github.com/echelon-solutions/swagger-node-vagrant

开源协议:

下载


swagger-node-vagrant

A portable Vagrant environment for running swagger-node to quickly create APIs.

Developer Workflow

Spinning up a local environment

  1. # 1. Install Vagrant (you can grab the installation for your OS at https://www.vagrantup.com/)
  2. # 2. Clone this repository locally (or alternatively, just download the Vagrantfile)
  3. git clone https://github.com/echelon-solutions/swagger-node-vagrant.git
  4. # 3. Change into the repository directory and start vagrant
  5. cd swagger-node-vagrant
  6. vagrant up
  7. # 4. That's it! You now have a node.js development environment for building Swagger APIs!
  8. # 5. Now, you can easily SSH into the environment
  9. vagrant ssh

Using the environment

  1. # Create the Swagger API project (do this when creating a new API)
  2. swagger-create my-new-api-project
  3. # Edit the project in the Swagger Editor
  4. swagger-edit my-new-api-project # then point your browser to localhost:8080/#/edit
  5. # Serve the API over http
  6. swagger-serve my-new-api-project

Stopping the environment

  • Stop your environment with vagrant halt
  • Destroy your environment with vagrant destroy

Support

Please contact support@echelon.solutions with questions or suggestions.

You may also make changes yourself and open a pull request to have your changes merged.