Coder Social home page Coder Social logo

heibaige123 / hoth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from searchfe/hoth

0.0 0.0 0.0 1.72 MB

A Node.js framework based on fastify

Home Page: https://searchfe.github.io/hoth/

License: MIT License

Shell 1.94% JavaScript 13.84% TypeScript 81.63% HTML 0.45% Smarty 0.06% Vue 2.07%

hoth's Introduction

hoth

A Node.js framework based on fastify

npm version downloads Build Status Coverage Status semantic-release

Requirements

Node.js v12 or later.

Install

npm install @hoth/cli --global

Quick start

Create a project:

hoth generate myproj

project types

  • Normal(with fastify-decorators): example
  • Vue SSR App: normal template with vue 3.0 ssr
  • San SSR App: normal template with san ssr

Install dependencies:

npm install

To start the service in dev mode:

npm run dev

Development

Node.js v16 is recommended while developing.

The semantic-release needs Node.js v16 to install. You can still use Node.js v12 after install though, we don't need semantic-release while developing.

Preparation

npm i lerna -g --registry https://registry.npmmirror.com
lerna bootstrap --registry https://registry.npmmirror.com
lerna link

Cli development

# add npm package
lerna add config-enhanced --scope @hoth/app-autoload --registry https://registry.npmmirror.com

# watch packages
lerna exec "tsc --build -w tsconfig.json" --scope @hoth/cli
lerna exec "tsc --build -w tsconfig.json" --scope @hoth/decorators
lerna exec "tsc --build -w tsconfig.json" --scope @hoth/app-autoload
lerna exec "tsc --build -w tsconfig.json" --scope @hoth/logger

# debug for example
cd example/hoth-quickstart
npm i --registry https://registry.npmmirror.com
npm run dev

# unit test fro a package
npm run test packages/logger
npm run test packages/cli
npm run test packages/app-autoload

hoth's People

Contributors

cxtom avatar meixg avatar semantic-release-bot avatar kaivean avatar dependabot[bot] 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.