midwayjs / Hooks
Licence: mit
FullStack | Zero Api | Using "React Hooks" to develop the back-end | Vite
Stars: ✭ 367
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Hooks
Frontend Developer Roadmap
📘 Front-end developer roadmap in 2021. This repository aims to collect the most important concepts of front-end.
Stars: ✭ 233 (-36.51%)
Mutual labels: fullstack, frontend
Pure Store
A tiny immutable store with type safety.
Stars: ✭ 133 (-63.76%)
Mutual labels: hooks, frontend
Web3 React
🧰 A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps
Stars: ✭ 788 (+114.71%)
Mutual labels: hooks, frontend
Kvision
Object oriented web framework for Kotlin/JS
Stars: ✭ 658 (+79.29%)
Mutual labels: fullstack, frontend
Portfolio
💼 My personal portfolio built with React and three.js.
Stars: ✭ 106 (-71.12%)
Mutual labels: serverless, hooks
Mern Authentication
MERN stack authentication boilerplate: password reset, email verification, server sessions, redux, hooks and docker for dev and prod.
Stars: ✭ 129 (-64.85%)
Mutual labels: hooks, frontend
Sifrr
⚡️ Set of tiny, independent libraries for creating modern and fast webapps with javascript/typescript
Stars: ✭ 174 (-52.59%)
Mutual labels: fullstack, frontend
Write With Me
Real-time Collaborative Markdown Editor
Stars: ✭ 81 (-77.93%)
Mutual labels: serverless, hooks
Hook.io
Open-Source Microservice Hosting Platform
Stars: ✭ 1,201 (+227.25%)
Mutual labels: serverless, hooks
Korolev
Single Page Applications running on the server side.
Stars: ✭ 510 (+38.96%)
Mutual labels: fullstack, frontend
Ice
🚀 The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
Stars: ✭ 16,961 (+4521.53%)
Mutual labels: serverless, hooks
Pwa Boilerplate
✨ PWA Boilerplate is highly scalable and is designed to help you kick-start your next project 🔭.
Stars: ✭ 82 (-77.66%)
Mutual labels: hooks, frontend
Serverless Monorepo App
Serverless Monorepo App
Stars: ✭ 136 (-62.94%)
Mutual labels: serverless, frontend
Djreact
A simple introduction to integrating Django and React.
Stars: ✭ 317 (-13.62%)
Mutual labels: fullstack, frontend
Midway Faas
🔱 A simple and lightweight serverless framework
Stars: ✭ 363 (-1.09%)
Mutual labels: serverless
Eventmesh
EventMesh is a dynamic cloud-native eventing infrastruture used to decouple the application and backend middleware layer, which supports a wide range of use cases that encompass complex multi-cloud, widely distributed topologies using diverse technology stacks.
Stars: ✭ 356 (-3%)
Mutual labels: serverless
Threatmapper
Identify vulnerabilities in running containers, images, hosts and repositories
Stars: ✭ 361 (-1.63%)
Mutual labels: serverless
React Music Player
React,TS的音乐播放插件,歌词同步功能,适配PC和移动端;A music player build with react and typescript for mobile and PC
Stars: ✭ 357 (-2.72%)
Mutual labels: hooks
Full Stack Framework: Faster & More Productive
Docs:Getting Started
✨ Features
- ☁️ Fullstack, the src directory contains front-end and back-end code
- 🌈 "Zero" Api, import server functions directly into frontend and automatically create API requests.
- 🌍 Using "React Hooks | Vue composition Api" to develop the back-end
- ⚡️ Extremely fast start-up speed, less than 3S
- ⚙️ Using Vite, supports Vue/React (any other framework supported by Vite)
- ✈️ Deploy to Server or Serverless
- 🛡 TypeScript Ready
🌰 Demo
front-end invoke | back-end api |
---|---|
import { getPath, post } from './apis/lambda';
// send GET request to /api/getPath
const path = await getPath();
console.assert(path === '/api/getPath');
const { message, method } = await post('Jake');
console.assert(message === 'Hello Jake!');
console.assert(method === 'POST');
|
import { useContext } from '@midwayjs/hooks';
export async function getPath() {
// Get HTTP request context by Hooks
const ctx = useContext();
return ctx.path;
}
export async function post(name: string) {
const ctx = useContext();
return {
message: `Hello ${name}!`,
method: ctx.method,
};
}
|
🚀 Quick Start
Please install @midwayjs/cli
first.
$ npm i @midwayjs/cli -g
Create
mw new my-app
Run
$ npm run dev
Deploy to custom server
$ node bootstrap.js
Deploy to Serverless
$ npm run deploy
Contribute
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
We use yarn + lerna to manage the project.
- install dependencies
$ yarn
- build
$ yarn build
- watch
$ yarn watch
- test
$ yarn test
license
Midway Serverless based MIT licensed.
About
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].