vapor-docs/3.0/docs/extras/yeoman.md

38 lines
1.1 KiB
Markdown

# Yo Vapor
Yeoman is a popular scaffolding tool distributed through NPM. There is a beta Vapor 3 generator maintained in Vapor Community ([vapor-community/yeoman](https://github.com/vapor-community/yeoman)) that you can use to create new projects.
![screen shot 2018-10-30 at 2 19 59 pm](https://user-images.githubusercontent.com/1342803/47740945-777ce100-dc4f-11e8-9cde-4a09c518dbf4.png)
## Installation
First, install [Yeoman](http://yeoman.io) and generator-vapor using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).
```bash
npm install -g yo generator-vapor
```
## Create New Project
Once you have installed Yeoman and the Vapor Generator, you can create a new project.
First, create a new folder and `cd` into it:
```bash
mkdir my-project
cd my-project
```
Then, use the `yo` command to generate your new project:
```bash
yo vapor
```
Follow the instructions to choose which packages you would like to use.
## Contributing
Help us improve this generator by contributing to [vapor-community/yeoman](https://github.com/vapor-community/yeoman).