Giter Club home page Giter Club logo

moleculer-template-nano's Introduction

Moleculer template: nano

๐ŸŽ“ Minimal project template for one Moleculer microservice.

Features

  • Moleculer v0.14.x with moleculer.config.js
  • Simple project with a demo greeter service
  • Transporter & Cacher
  • Docker & Docker Compose files
  • Unit tests with Jest
  • Lint with ESLint
  • Launch file for debugging in VSCode

Install

To install use the moleculer-cli tool.

$ moleculer init nano my-project

Prompts

$ moleculer init nano my-project

Template repo: moleculerjs/moleculer-template-nano
? Select a transporter NATS (recommended)
? Would you like use cache? Yes
? Select a cacher solution Memory
? Would you like to enable metrics? Yes
? Would you like to enable tracing? Yes
? Add Docker files? Yes
? Use ESLint to lint your code? Yes
Create 'moleculer-nano' folder...
? Would you like to run 'npm install'? Yes

NPM scripts

  • npm run dev - Start service.js with hot-reloading and REPL.
  • npm lint - Run linting
  • npm run ci - Start testing in watch mode
  • npm start - Start service.js in production mode
  • npm test - Run tests & generate coverage report

License

This template is available under the MIT license.

Contact

Copyright (c) 2020 MoleculerJS

@moleculerjs @MoleculerJS

moleculer-template-nano's People

Contributors

icebob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isabella232

moleculer-template-nano's Issues

Dockerfile doesn't build

$ moleculer init nano my-project
moleculer init nano my-project
Template repo: moleculerjs/moleculer-template-nano
Downloading template...
? Select a transporter NATS
? Would you like use cache? Yes
? Select a cacher solution Memory
? Would you like to enable metrics? Yes
? Would you like to enable tracing? Yes
? Add Docker files? Yes
? Use ESLint to lint your code? Yes
Create 'my-project' folder...
? Would you like to run 'npm install'? Yes

Running 'npm install'...
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> [email protected] postinstall /Users/ksefchik/dev/trafficware/node-forum/my-project/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

added 751 packages from 364 contributors and audited 391236 packages in 11.114s

16 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities


   
   To get started:
   
        cd my-project
        npm run dev
   
   
$ cd my-project 
$ docker build - < Dockerfile
Sending build context to Docker daemon  2.048kB
Step 1/8 : FROM node:current-alpine
 ---> 90a1b235430e
Step 2/8 : ENV NODE_ENV=production
 ---> Using cache
 ---> 53f6a78d7a32
Step 3/8 : RUN mkdir /app
 ---> Using cache
 ---> f5629b137986
Step 4/8 : WORKDIR /app
 ---> Using cache
 ---> 83f54bd4ff41
Step 5/8 : COPY package.json package-lock.json ./
COPY failed: stat /var/lib/docker/tmp/docker-builder394438232/package.json: no such file or directory

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.