Coder Social home page Coder Social logo

nodejs-boilerplate's Introduction

nodejs-boilerplate

This repo is a minimal Node.js project starter.

System Requirements.

  • Node.js with NPM support.

Technology Stacks

Tools used during development phase:

There is no any external dependency on generated output.

Usage

Start a New Project

Clone this repo and install all the tools:

$ git clone https://github.com/cwchentw/nodejs-boilerplate.git
$ my nodejs-boilerplate myapp
$ cd myapp
$ npm install

After editing myapp, update the remote URL to save it to a new remote repo:

$ git remote set-url origin path/to/remote/repo

Build a Project

Invoke this command to build the app in development mode:

$ npm run start-dev

All the JavaScript source files will be concatenated into single app.js, running it with node.

Publish a Project

Invoke this command to build the app in release mode:

$ npm start

In addition to code concatenation, the generated code will be minified as well to save disk space.

Check Type in Source

Run flow to check type in source code:

$ npm run flow

You have to add flow-compatible type annotation in JavaScript code to use flow by yourself.

Notice

You have to edit srclist.js to set the order for file concatenation.

Copyright

Copyright (c) 2019 Michelle Chen. Licensed under MIT license

nodejs-boilerplate's People

Contributors

cwchentw avatar dependabot[bot] avatar opensourcedoc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.