GithubHelp home page GithubHelp logo

lcna's Introduction

Little Create Node App (lcna)

Quick start your npm project. We support basic node app, express app and web app.

Installation

npm install -g lcna

Quick Start With Express App

The quickest way to get started with express. Just a few questions.

Create the express app:

$ lcna
? Project Name: myapp
? Template Usage: express
? Tool: flow, eslint
? Log: winston
? CI: .gitlab-ci
? JSON Web Token (JWT): No

Install dependencies:

$ npm install

Start your Express.js app at http://localhost:3000/:

$ npm start

Build your project for deploy.

$ npm run build

A Few Questions

? Project Name:
  Your project name and used to create a folder
  
? Template Usage: app/express/web
  choose you want generator project
  
? Tool: eslint, flow
  flow: static variable type check
  eslint: Help you improve code quality

? Log: winston, winston+rollbar
  winston: help you write log file
  rollbar: rollbar log repository

? CI: .gitlab-ci
  .gitlab-ci: use gitlab ci

? JSON Web Token (JWT): Yes/no
  request way.

Project Script

"scripts": {
    "start": start your app
    "test": jest test
    "build": build project for deploy
    "flow": flow all file.
    "lint": eslint a file that you choose.
    "eslint": eslint all file.
}

Note

You need add flow typed to resolve test file, if you use flow.

npm i --save-dev flow-typed
./node_modules/.bin/flow-typed install jest

License

MIT

lcna's People

Contributors

jerry2971 avatar dependabot[bot] avatar

lcna's Issues

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.