📜 ⬆️ ⬇️

Eskimo - Node.js boilerplate to create prototypes

eskimo

Eskimo is the new Node.js boilerplate for fast prototyping (MVP).

Even if the Internet is filled with different boilerplates and frameworks, today there is no modern, modular and minimal boilerplate for launching prototypes (especially for the construction of RMVP's rapid minimal products). The project is created with a small, one person, but then, under the influence of investors, it grows to unpredictable sizes. A Google search and Github pro Nodejs boilerplate and Nodejs framework gives you hundreds of results.
')
But many of these project starters do not have the automation to deploy and test products. Some ignore the front-end practice and do not use Bower , Bootstrap , Font Awesome , S3 / CloudFront , clustering and LESS . And no boilerplate or framework has implemented an injection of dependencies using electrolyte , with the exception of Eskimo and Jared Hanson's projects.

Most applications structure their code by simply using global variables (which is bad practice). Here, for example, how many project starters structure their code with global objects:

// config.js

module.exports = {
port: process.env === 'development'? 3000: 80
};
// controller.js

module.exports = function (config) {
return function (req, res, next) {
res.send ('Hello world');
});
};
// app.js

var express = require ('express');
var app = express ();
var config = require ('./ config');
var controller = require ('./ controller') (config);

app.get ('/', controller);

app.listen (config.port);

How does Eskimo solve the problem?

Simple design

Built with a commander and inspired by the yo command line interface (CLI) provides the team to create a new prototype and commands for designing mongoose , jade templates and route middleware.

For rapid design, initially based on the successful development of projects, the following components were combined into one boilerplate: one template language - jade, one ORM - mongoose, one database - MongoDB and one CSS pre-processor - LESS .

Simple personalization

If you don’t like to use Jade, Less, Passport , simply delete the theme from the generated project files and remove them from package.json after the command eskimo create [name].

Examples

Let's say you created a new project. What's next? Need Facebook and / or Google authentication in the application, or integration with Stripe, or documentation and installation for the RESTful API, or using Sockets.io, or setting up an automated deployment? Just look in / examples. Having micro examples like Readme files, users are forced to read and think, and not just copy / paste a complete working example.

Designs developed with Eskimo

https://ourharvest.com/
http://developer.marketprophit.com/
http://seedfeed.com/

Eskimo was created by leading Node.js programmer from Clevertech - Nick Bof .

Source: https://habr.com/ru/post/243579/


All Articles