fiddus/generator-fiddus-server

语言: JavaScript

git: https://github.com/fiddus/generator-fiddus-server

Fiddus Tecnologia Yeoman Generator,用于基于Node.js / Express.js / MongoDB的REST API服务器。
Fiddus Tecnologia Yeoman Generator for a Node.js/Express.js/MongoDB based, REST API server.
README.md (中文)

发电机fiddus服务器

Yeoman发电机

入门

什么是Yeoman?

特技问题。这不是一件事。是这个人:

基本上,他戴着大礼帽,住在你的电脑里,等着你告诉他你想要创造什么样的应用程序。

并非每台新电脑都预装了Yeoman。他住在npm包存储库中。你只需要问他一次,然后他打包并搬进你的硬盘。确保你清理干净,他喜欢新的和有光泽的东西。

npm install -g yo

Yeoman发电机

Yeoman旅行轻松。他搬进来时没有收拾任何发电机。你可以想到一个像插件一样的发电机。您可以选择要创建的应用程序类型,例如Backbone应用程序甚至Chrome扩展程序。

要从npm安装generator-fiddus-server,请运行:

npm install -g generator-fiddus-server

最后,启动发电机:

yo fiddus-server

了解Yeoman

Yeoman有一颗金子般的心。他是一个有感情和意见的人,但他很容易合作。如果你认为他过于自以为是,那么他很容易被说服。

如果您想更好地了解Yeoman并与他的一些朋友Grunt和Bower见面,请查看完整的入门指南。

Fiddus服务器生成器

此生成器在Node.js / Express.js / MongoDB堆栈之上创建一个有效的REST API服务器。

它带有身份验证,用户管理(CRUD +激活+密码恢复)和一些基本的操作日志记录。

该应用程序的结构有点基于Peter Lyons为中型Express项目提供快速代码结构, 其中与应用程序的某些特定部分相关的文件保持紧密,而不是按功能分隔,例如在传统的MVC架构中(我在看你,RoR)。

特约

如果您希望修改服务器结构本身而不是生成器,请访问https://github.com/fiddus/server-template。 此生成器完全基于此服务器模板,对模板所做的任何更改都将移植到生成器。

如果您想为生成器本身添加功能,例如进一步配置输出,可以随意将PR发送到此repo。

执照

麻省理工学院许可证(MIT)

Fiddus Tecnologia

版权所有(c)2015 Vinicius Teixeira vinicius0026@gmail.com

特此授予任何获得副本的人免费许可 这个软件和相关的文档文件(“软件”),来处理 在软件中没有限制,包括但不限于权利 使用,复制,修改,合并,发布,分发,再许可和/或出售 本软件的副本,并允许软件所在的人员 在这样做的情况下,符合以下条件:

上述版权声明和本许可声明应包括在内 本软件的所有副本或重要部分。

本软件按“原样”提供,不提供任何形式的保证,或者 暗示,包括但不限于适销性保证, 适用于特定用途和不侵权的适用性。在任何情况下都不应该 作者或版权所有者对任何索赔,损害或其他责任均有责任 无论是合同,侵权行为还是其他行为,由此产生的责任, 在软件或使用或其他交易中的或与之相关的 软件。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

generator-fiddus-server

Yeoman generator

Getting Started

What is Yeoman?

Trick question. It's not a thing. It's this guy:

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

npm install -g yo

Yeoman Generators

Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.

To install generator-fiddus-server from npm, run:

npm install -g generator-fiddus-server

Finally, initiate the generator:

yo fiddus-server

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.

If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.

Fiddus-Server generator

This generator creates a working REST API server, on top of a Node.js/Express.js/MongoDB stack.

It comes with authentication, user management (CRUD + activation + password recovery) and some basic action logging.

The structure of the application is somewhat based on Peter Lyons express code structure for mid-sized Express projects,
where files related to some specific part of application stay close together, instead of separated by function, such as in traditional MVC architectures (I'm looking at you, RoR).

Contributing

If you wish to modify the server structure itself, instead of generator stuff, please @see https://github.com/fiddus/server-template.
This generator is completely based in this server template and any changes made to the template will be ported to the generator.

If you want to add functionality to the generator itself, such as further configuring the output, fell free to send PR's to this repo.

License

The MIT License (MIT)

Fiddus Tecnologia

Copyright (c) 2015 Vinicius Teixeira vinicius0026@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.