0.3.2 • Published 5 years ago

surprise-crud v0.3.2

Weekly downloads
25
License
ISC
Repository
github
Last release
5 years ago

Surprise-CRUD

:blue_book: Documentation page :orange_book:

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

:heavy_exclamation_mark: Example app :heavy_exclamation_mark: :blue_book: Documentation page :orange_book:

Tests

Soon

Problems

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

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.51

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.22

5 years ago

0.2.21

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago