All Projects → fwilkerson → Microenvi

fwilkerson / Microenvi

Licence: mit
Bundle, serve, and hot reload with one command

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Microenvi

Micro Github
A tiny microservice that makes adding authentication with GitHub to your application easy.
Stars: ✭ 726 (+505%)
Mutual labels:  micro
S
a go web freamwork for micro service, very very easy to create and deploy, with auto service registry and discover, high performance and based on http/2 no ssl
Stars: ✭ 67 (-44.17%)
Mutual labels:  micro
Now Go
Create tinyurl/redirection service with ease.
Stars: ✭ 107 (-10.83%)
Mutual labels:  micro
Hemera
🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/
Stars: ✭ 773 (+544.17%)
Mutual labels:  micro
Is
Micro check library in Golang.
Stars: ✭ 61 (-49.17%)
Mutual labels:  micro
Examples
Go Micro examples. Moved to go-micro/examples.
Stars: ✭ 1,276 (+963.33%)
Mutual labels:  micro
Taggle.js
📝 Form-ready dependency-less tagging.
Stars: ✭ 644 (+436.67%)
Mutual labels:  micro
Mconf
微服务配置中心 mconf ,基于 Zookeeper和Redis实现的配置中心。提供拉取配置、订阅配置、新增配置、删除配置、修改配置等功能。支持多数据中心、多环境配置、配置分组、多版本配置等功能。
Stars: ✭ 112 (-6.67%)
Mutual labels:  micro
Gomicro note
go-micro学习笔记
Stars: ✭ 62 (-48.33%)
Mutual labels:  micro
Platform Web
micro platform web dashboard 服务治理与监控平台
Stars: ✭ 104 (-13.33%)
Mutual labels:  micro
Remit
RabbitMQ-backed microservices supporting RPC, pubsub, automatic service discovery and scaling with no code changes.
Stars: ✭ 24 (-80%)
Mutual labels:  micro
Awesome Micro
A collection of awesome things regarding zeit's micro.
Stars: ✭ 1,053 (+777.5%)
Mutual labels:  micro
Micro Jwt Auth
jwt authorization wrapper for https://github.com/zeit/micro
Stars: ✭ 97 (-19.17%)
Mutual labels:  micro
Micro Analytics Cli
Public analytics as a Node.js microservice. No sysadmin experience required! 📈
Stars: ✭ 743 (+519.17%)
Mutual labels:  micro
Micro
Asynchronous HTTP microservices
Stars: ✭ 9,987 (+8222.5%)
Mutual labels:  micro
Micro Lisp
🎄A very small Lisp programming language 😀that used to be under 200 lines of C🎄
Stars: ✭ 699 (+482.5%)
Mutual labels:  micro
Go Collection
🌷 awesome awesome go, study golang from basic to proficient
Stars: ✭ 1,193 (+894.17%)
Mutual labels:  micro
Node Frameworks Benchmark
Simple HTTP benchmark for different nodejs frameworks using wrk
Stars: ✭ 117 (-2.5%)
Mutual labels:  micro
Micro
Micro is a distributed cloud operating system
Stars: ✭ 10,778 (+8881.67%)
Mutual labels:  micro
Micro Authentication Starter
micro + authentication starter
Stars: ✭ 99 (-17.5%)
Mutual labels:  micro

microenvi

Microenvi is a zero configuration micro development environment. Bundle, serve, and hot reload with one command.

Transpile & bundle is done with microbundle.

Quick start

A simple hello world with microenvi and preact;

  • first let's initialize our project npm init --yes
  • then install preact npm i -S preact
  • finally install microenvi npm i -D microenvi

Now add the following to your package.json

{
	"main": "public/static/bundle.mjs",
	"scripts": {
		"dev": "microenvi"
	}
}

Create a public folder and add the following index.html to it.

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Microenvi</title>
	</head>

	<body>
		<div id="root"></div>
	</body>
</html>

Finally create a src folder and add the following index.js to it.

import {h, render} from 'preact';

render(<h2>Hello, Microenvi</h2>, document.getElementById('root'));

Start your dev environment by running... npm run dev

CLI Options

  Usage
    $ microenvi <command> [options]

  Available Commands
    watch    Bundle, serve, and reload

  For more info, run any command with the `--help` flag
    $ microenvi watch --help

  Options
    -v, --version    Displays current version
    --cwd            Use an alternative working directory  (default .)
    --dir            Specify the directory to watch  (default public)
    --external       Specify external dependencies  (default none)
    --globals        Specify global dependencies  (default none)
    --jsx            A custom JSX pragma like React.createElement  (default h)
    --define         Inline constants  (default none)
    --alias          Remap imports from one module to another  (default none)
    --open           Automatically open browser  (default true)
    --port           Specify a port  (default 3000)
    --single         Serve single page app  (default false)
    --ws             Specify a port for the reload ws  (default 3301)
    -h, --help       Displays this message

The syntax for --define and --alias are as follows:

$ microenvi --define process.env.NODE_ENV=production,NUM=123,BOOL=true
# and
$ microenvi --alias react=preact-compat,react-dom=preact-compat
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].