• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Typescript project template for Moleculer microservices framework.

Moleculer template: project-typescript

🎓 Moleculer-based microservices project template for Typescript project.

Features

  • Moleculer v0.14 with full-detailed moleculer.config.ts file.
  • Common mono-repo project with a demo greeter service.
  • Sample database products service (with file-based NeDB in development & MongoDB in production).
  • Optional API Gateway service with detailed service settings.
  • Beautiful static welcome page to test generated services & watch nodes and services.
  • Optional Transporter & Cacher.
  • Metrics & Tracing.
  • Docker & Docker Compose & Kubernetes files.
  • Unit tests with Jest.
  • Lint with ESLint.
  • Launch file for debugging in VSCode.

Install

To install use the moleculer-cli tool.

$ moleculer init project-typescript my-project

Prompts

$ moleculer init project-typescript moleculer-demo

Template repo: moleculerjs/moleculer-template-project-typescript
? Add API Gateway (moleculer-web) service? Yes
? Would you like to communicate with other nodes? Yes
? Select a transporter NATS (recommended)
? Would you like to use cache? Yes
? Select a cacher solution Memory
? Would you like to enable metrics? Yes
? Select a reporter solution Prometheus
? Would you like to enable tracing? Yes
? Select a exporter solution Console
? Add Docker & Kubernetes sample files? Yes
? Use ESLint to lint your code? Yes
Create 'moleculer-demo' folder...
? Would you like to run 'npm install'? Yes

NPM scripts

  • npm run dev: Start development mode (load all services locally without transporter with hot-reload & REPL)
  • npm run start: Start production mode (set SERVICES env variable to load certain services)
  • npm run cli: Start a CLI and connect to production. Don't forget to set production namespace with --ns argument in script
  • npm run lint: Run ESLint
  • npm run ci: Run continuous test mode with watching
  • npm test: Run tests & generate coverage report
  • npm run dc:up: Start the stack with Docker Compose
  • npm run dc:logs: Watch & follow the container logs
  • npm run dc:down: Stop the stack with Docker Compose

License

moleculer-template-project-typescript is available under the MIT license.

Contact

Copyright (c) 2023 MoleculerJS

@moleculerjs @MoleculerJS

More Repositories

1

moleculer

🚀 Progressive microservices framework for Node.js
JavaScript
6,089
star
2

awesome-moleculer

🚀 A list of awesome things related to Moleculer microservices framework
JavaScript
361
star
3

moleculer-web

🌍 Official API Gateway service for Moleculer framework
JavaScript
291
star
4

moleculer-examples

🎲 Examples for Moleculer microservices framework
HTML
160
star
5

moleculer-db

🔋 Database access service mixins for Moleculer
JavaScript
152
star
6

moleculer-apollo-server

🚀 Apollo GraphQL server for Moleculer
JavaScript
100
star
7

moleculer-addons

🎁 Official addons for Moleculer framework
JavaScript
86
star
8

moleculer-io

Socket.io API GateWay service for Moleculer framework
JavaScript
80
star
9

moleculer-channels

Reliable messages for Moleculer services via external queue/channel/topic.
JavaScript
72
star
10

moleculer-realworld-example-app

🌏 RealWorld example app with Moleculer microservices framework
JavaScript
54
star
11

moleculer-cli

🌿 Command line tool for Moleculer
JavaScript
48
star
12

moleculer-metrics

📈 Official monitoring & metrics addons for Moleculer framework
JavaScript
47
star
13

database

Advanced Database Access Service for Moleculer microservices framework
JavaScript
32
star
14

moleculer-repl

REPL module for Moleculer framework
JavaScript
27
star
15

moleculer-cheatsheets

📚 Cheatsheets for Moleculer microservices framework
JavaScript
26
star
16

moleculer-template-project

🎓 Common project template for Moleculer-based projects
JavaScript
21
star
17

site

🌐 Official website for Moleculer
JavaScript
21
star
18

moleculer-http-client

HTTP client mixin that allows Moleculer services to communicate with remote REST APIs
JavaScript
17
star
19

docker-demo

Kubernetes & Docker demo for Moleculer project testing & prototyping.
HTML
17
star
20

sidecar

[WIP] Sidecar for Moleculer framework with HTTP support.
JavaScript
15
star
21

moleculer-db-adapter-typeorm

typescript sql adapter using typeorm
TypeScript
10
star
22

kubernetes-demo

Kubernetes demo for Moleculer microservices framework
9
star
23

educational-content

A guide to create educational content for the Moleculer ecosystem
9
star
24

moleculer-template-nano-typescript

Minimal project template for one Moleculer microservice with typescript.
TypeScript
8
star
25

moleculer-template-nano

🎓 Minimal project template for one microservice.
JavaScript
7
star
26

perf-tester

Performance tester docker image to test your tech stack (transporter, serializer, discoverer)
JavaScript
6
star
27

sandbox-moleculer-db

Moleculer Database service sandbox for prototyping.
JavaScript
5
star
28

project-demo

Demo Project. Generated by official "project" template
JavaScript
5
star
29

moleculer-docgen

📜 Documentation generator for Moleculer services
JavaScript
5
star
30

incubator

🐣 A comprehensive Moleculer demo project to try out new ideas and test all framework features and modules.
4
star
31

moleculer-agent

🚦 [PoC] Agent to control your Moleculer nodes remotely
JavaScript
4
star
32

moleculer-db-adapter-macrometa

MacroMeta adapter for Moleculer DB service.
JavaScript
4
star
33

moleculer-web-addons

Mixin & middleware addons for official Moleculer API Gateway service.
3
star
34

sandbox-moleculer-api-routing

Moleculer API Gateway routing sandbox on Codesandbox.io
JavaScript
3
star
35

moleculer-appsignal

[WIP] Moleculer Metrics reporter and Tracing exporter for AppSignal
JavaScript
3
star
36

rfcs

Request-For-Comments collection for Moleculer microservices framework
2
star
37

moleculer-template-addon

🎓 Addon template for moleculer-addons package
JavaScript
2
star
38

moleculer-template-module

🎓 Simple module template for moleculer-cli
JavaScript
2
star
39

project-typescript-demo

Demo Project. Generated by official "project-typescript" template
TypeScript
2
star
40

moleculer-middlewares

Middleware Monorepo for MoleculerJS
TypeScript
1
star
41

generator-moleculer

Yeoman generator to generate a Moleculer project
JavaScript
1
star
42

katacoda-scenarios

Katacoda scenarios for Moleculer microservices framework
1
star
43

sandbox-moleculer-project

Moleculer project sandbox for prototyping on CodeSandbox.io
JavaScript
1
star