All Projects → neutrinojs → express-starter

neutrinojs / express-starter

Licence: other
ARCHIVED: Please use @neutrinojs/create-project

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to express-starter

Jquery.redirect
jQuery Redirect Plugin
Stars: ✭ 182 (+1200%)
Mutual labels:  yarn
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+100421.43%)
Mutual labels:  yarn
docker-hadoop
Docker image for main Apache Hadoop components (Yarn/Hdfs)
Stars: ✭ 59 (+321.43%)
Mutual labels:  yarn
Cheat Sheets
Cheat Sheets 🐭🤖👀
Stars: ✭ 185 (+1221.43%)
Mutual labels:  yarn
Gulp Webpack Starter
Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get an awesome development experience!
Stars: ✭ 199 (+1321.43%)
Mutual labels:  yarn
Yarn Completion
Bash completion for Yarn
Stars: ✭ 210 (+1400%)
Mutual labels:  yarn
Greenkeeper Lockfile
🔒 Your lockfile, up to date, all the time
Stars: ✭ 181 (+1192.86%)
Mutual labels:  yarn
Forward-Framework
A killer WordPress theme framework built using underscores, gulp, sass, bourbon neat, bower & browsersync.
Stars: ✭ 23 (+64.29%)
Mutual labels:  yarn
Dialetus Service
API to Informal dictionary for the idiomatic expressions that each Brazilian region It has
Stars: ✭ 202 (+1342.86%)
Mutual labels:  yarn
Express Mongoose Es6 Rest Api
💥 A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication
Stars: ✭ 2,811 (+19978.57%)
Mutual labels:  yarn
Quickshare
Quick and simple file sharing between different devices.
Stars: ✭ 190 (+1257.14%)
Mutual labels:  yarn
Corepack
Zero-runtime-dependency package acting as bridge between Node projects and their package managers
Stars: ✭ 196 (+1300%)
Mutual labels:  yarn
Core
Native HTML Elements with CSS superpowers. 🕶
Stars: ✭ 237 (+1592.86%)
Mutual labels:  yarn
Xity Starter
A blog-ready 11ty starter based on PostCSS, with RSS feed and Native Elements!
Stars: ✭ 184 (+1214.29%)
Mutual labels:  yarn
neutrino-preset-react-components
Create generic React components and previewing them without the need to embed in an application. Plays nicely with other Neutrino middleware, so you can build, test, preview, and publish multiple React components from a single repository.
Stars: ✭ 62 (+342.86%)
Mutual labels:  neutrino
Atom Autocomplete Module Import
⚛️ Search & install npm packages from import/require statements.
Stars: ✭ 182 (+1200%)
Mutual labels:  yarn
Yalc
Work with yarn/npm packages locally like a boss.
Stars: ✭ 3,155 (+22435.71%)
Mutual labels:  yarn
zsh-yarn-completions
Yarn completions for Z-shell that supports yarn workspaces
Stars: ✭ 35 (+150%)
Mutual labels:  yarn
introduction-nodejs
Introduction to NodeJS
Stars: ✭ 13 (-7.14%)
Mutual labels:  yarn
21 Points
❤️ 21-Points Health is an app you can use to monitor your health.
Stars: ✭ 244 (+1642.86%)
Mutual labels:  yarn

Express Starter

Create Node apps using the Express framework with zero initial configuration. express-starter is built using Neutrino to harness the power of Webpack with the simplicity of presets.

Features

  • Zero upfront configuration necessary to start developing and building an Express project
  • Extends from neutrino-preset-node
    • Modern Babel compilation supporting ES modules, Node.js 6.10+, async functions, and dynamic imports
    • Supports automatically-wired sourcemaps
    • Tree-shaking to create smaller bundles
    • Hot Module Replacement with source-watching during development
    • Chunking of external dependencies apart from application code
    • Easily extensible to customize your project as needed

Requirements

  • Node.js v6.10+
  • Yarn or npm client

Installation

To get you started fork and clone the express-starter repository and install the dependencies using Yarn or the npm client.

cd express-starter/
❯ yarn

Quick start

Start the app with yarn start, then open a browser to http://localhost:3000.

Yarn

❯ yarn start
✔ Build completed
Running on :3000

npm

❯ npm run start
✔ Build completed
Running on :3000

Building

express-starter builds static assets to the build directory by default when running yarn build.

❯ yarn build
✔ Building project completed
Hash: d37197f792ebd4b79477
Version: webpack 2.3.2
Time: 755ms
       Asset     Size  Chunks             Chunk Names
    index.js  3.97 kB       0  [emitted]  index
index.js.map  3.83 kB       0  [emitted]  index
✨  Done in 2.60s.

Running Tests

In order to keep this starter kit minimalist, express-starter has no test runner configured, however adding one is incredible easy with Neutrino. Refer to the relevant section on building and running tests.

Customizing

To override the build configuration, start with the documentation on customization. neutrino-preset-node creates some conventions to make overriding the configuration easier once you are ready to make changes.

By default the Node.js preset creates a single main index entry point to your application, and this maps to the index.js file in the src directory. This means that the Node.js preset is optimized toward a main entry to your app. Code not imported in the hierarchy of the index entry will not be output to the bundle. To overcome this you must either define more entry points, or import the code path somewhere along the index hierarchy.

Vendoring

express-starter uses neutrino-preset-node. The latter automatically vendors all external dependencies into a separate chunk based on their inclusion in your package.json. No extra work is required to make this work.

Rules

Refer to the list of rules and their identifers which can be overridden.

Plugins

Refer to the list of plugins and their identifiers which can be overridden.

Override configuration

By following the customization guide and knowing the rule, loader, and plugin IDs above, you can override and augment the build by by providing a function to your .neutrinorc.js use array. You can also make these changes from the Neutrino API in custom middleware.

Example: Allow importing modules with an .mjs extension.

module.exports = {
  use: [
    'neutrino-preset-node',
    (neutrino) => neutrino.config.resolve.extensions.add('.mjs')
  ]
};

Contributing

Thank you for wanting to help out with Neutrino! We are very happy that you want to contribute, and have put together the contributing guide to help you get started. We want to do our best to help you make successful contributions and be part of our community.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].