surprise-crud

0.3.2 • Public • Published

Surprise-CRUD

📘 Documentation page 📙

It's a package which creates default CRUD options for Your applications. You don't have to care about:

  • GET,
  • GET By ID,
  • GET with Pagination,
  • POST,
  • PUT By ID,
  • DELETE By ID

It will setup it for You.

You can also check out my surprisejs-cors library, which setup cors in Your express app very quickly, with small amount of work from Your side.

Prerequisites

You will need the following things installed on your computer. At this moment, this package works only with MongoDB and Express, but soon will be working also with PostgreSQL database and Koa.js framework

  • Node.js (with NPM)

  • Express

  • MongoDB

  • Mongoose

  • Project configured with:

    • working express.Router(),
    • working connection to MongoDB
    • bodyParser
  • or just use my example app from Configuration with examples section.

Installation

Just simply install package with npm: npm install --save surprise-crud

Setup

After installing package, go to any of Your route file ( or create new one ) and import package:

import { crud } from 'surprise-crud'

OR

const { crud } = require('surprise-crud')

Now we can move to configuration.

Configuration with examples

In documentation & example app

Example app ❗ 📘 Documentation page 📙

Tests

Soon

Problems

If You get some problems, don't be afraid to contact or create an issue :)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.22latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.22
0.3.10
0.3.00
0.2.510
0.2.52
0.2.41
0.2.30
0.2.220
0.2.210
0.2.20
0.2.13
0.2.00
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.03
0.0.80
0.0.70
0.0.60
0.0.50

Package Sidebar

Install

npm i surprise-crud

Weekly Downloads

11

Version

0.3.2

License

ISC

Unpacked Size

6.62 kB

Total Files

5

Last publish

Collaborators

  • black09bb