All Projects → ivanhuay → hiroki

ivanhuay / hiroki

Licence: other
create a REST api faster than ever

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hiroki

Forms Angular
Probably the most opinionated framework in the world
Stars: ✭ 412 (+3069.23%)
Mutual labels:  crud, mongoose
Jianshu
仿简书nx+nodejs+nestjs6+express+mongodb+angular8+爬虫
Stars: ✭ 296 (+2176.92%)
Mutual labels:  crud, mongoose
Nestjs Query
Easy CRUD for GraphQL.
Stars: ✭ 325 (+2400%)
Mutual labels:  crud, mongoose
Rest Hapi
🚀 A RESTful API generator for Node.js
Stars: ✭ 1,102 (+8376.92%)
Mutual labels:  crud, mongoose
Mean Stack Angular6 Crud Example
MEAN Stack Angular 6 CRUD Web Application
Stars: ✭ 69 (+430.77%)
Mutual labels:  crud, mongoose
mern-stack-crud
MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example
Stars: ✭ 142 (+992.31%)
Mutual labels:  crud, mongoose
Nestjs Mongoose Crud
Nest.js crud module for mongoose models without `nestjsx/crud`
Stars: ✭ 164 (+1161.54%)
Mutual labels:  crud, mongoose
NodeExpressCRUD
Node, Express, Mongoose and MongoDB CRUD Web Application
Stars: ✭ 45 (+246.15%)
Mutual labels:  crud, mongoose
nestjs-file-streaming
NestJS File Streaming With MongoDB
Stars: ✭ 28 (+115.38%)
Mutual labels:  mongoose
server-next
😎 The next generation of RESTful API service and more for Mix Space, powered by @nestjs.
Stars: ✭ 43 (+230.77%)
Mutual labels:  mongoose
yelp-camp
A Node.js web application project from the Udemy course - The Web Developer Bootcamp by Colt Steele
Stars: ✭ 36 (+176.92%)
Mutual labels:  mongoose
OpenBook-E-Commerce
An e-commerce progressive web application, built with mern stack. It has features like product buy, order management by admin, payment gateway, cart, checkout and lot more.
Stars: ✭ 53 (+307.69%)
Mutual labels:  mongoose
angular2-crud-auth-routing
Sample Angular (2.x, 4.x) project with Contacts CRUD + routing + simple authentication
Stars: ✭ 60 (+361.54%)
Mutual labels:  crud
ocdquery
Over-Complicated Database Query using higher-kinded data
Stars: ✭ 34 (+161.54%)
Mutual labels:  crud
InviteManagerMongoDB
The first InviteManager / Logger / Tracker with mongoDB for Discord.
Stars: ✭ 23 (+76.92%)
Mutual labels:  mongoose
vue-crud-ui
Single file Vue.js script that adds a UI to the PHP-CRUD-API project
Stars: ✭ 47 (+261.54%)
Mutual labels:  crud
C-Sharp-Learning-Journey
Some of the projects i made when starting to learn c#, winfroms and wpf
Stars: ✭ 95 (+630.77%)
Mutual labels:  crud
login push
vue+koa2+jwt实现单点登录 + todolist增删改查
Stars: ✭ 20 (+53.85%)
Mutual labels:  mongoose
onurl
URL Shortener created w/ Next.js, TypeScript, Mongoose
Stars: ✭ 48 (+269.23%)
Mutual labels:  mongoose
React-Native-Chat-App
A simple chatting app built with React Native, Socket.io, ExpressJS and MongoDB. The server app provides APIs for authentication, message sending and receiving. In the client app React-Native-Gifted-Chat is used for the chat interface.
Stars: ✭ 22 (+69.23%)
Mutual labels:  mongoose

Hiroki NPM version Build Status Dependency Status

build REST APIs faster than ever using the open source tools and standards you and your team already know.

hiroki is an open source tool inspired by baucis.

hiroki is fully compatible with mongoose 4 and 5.

hiroki is written in ES6 standards.

read the documentation here.

Getting Started

Step by step example HERE.

To install:

npm install --save hiroki

Create simple rest api:

this is a basic example, keep in mind you may need body-parser library.

const express = require('express');
const hiroki = require('hiroki');
const app = express();
const UsersSchema = new mongoose.Schema({name: String});
mongoose.model('Users', UsersSchema);

hiroki.rest('Users');//enable GET,PUT,POST & DELETE methods

app.use(hiroki.build());//automatically use the route "/api"
app.listen(8012);

Build config:

it is possible to change the route that hiroki uses

const config = {path:'/api/v1'};
app.use(hiroki.build(config));

Changelog

  • v0.2.7:
    • shareFormat & beforeShareEnd methods added to format share response.
    • Node v7 support removed.
    • docs for shared.
  • v0.2.5 fastUpdate option added. This enabled a faster way to update for higher performance.
  • v0.2.3 Critical bugfix: decorator error with delete method. Test added for cover that.
  • v0.2.2 Params $push and $pull working for PUT method. For doing this a custom Assign method was added to hiroki, because of that we made a benchmark test to measure this performance impact. Check it Here.
  • v0.2.0 Share Query path added. check the docs.
  • v0.1.3 MongooseConnector added, dependencies update no breaking changes. In future releases, new connectors would be added.
  • v0.1.2 Bugfix decorator for put route with :id as parameter
  • v0.1.1: Bugfix count with conditions error.
  • v0.1.0:
    • PUT request fire pre save hook in Mongoose Schema.
    • PUT update by condition only update one document.
    • findOneAndUpdate method removed from PUT request.
  • v0.0.9: Add support for new conditions format.
ej: GET /api/users?conditions[active]=true
  • v0.0.8: fix general request function affect all routes. This type of decorators affected all the routes.
...
controller.request((req,res,next) => {
  res.status(401).json({});
})

now it only affects the route of that collection

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].