Skip to content

Converts Mongoose schema to React form which works on both client and server

Notifications You must be signed in to change notification settings

aamirafridi/MongooseReactForm

Repository files navigation

Mongoose Schema to React Form

Converts Mongoose schema to React form which works on both client and server i.e. with or without Javascript enabled in browser (progressive enhancement).

Getting Started

# Clone this repo locally in a new folder
$ git clone git@github.com:aamirafridi/MongooseReactForm.git .

Install NPM dependencies

$ npm install
$ npm install -g mongodb

Run

Open 3 terminal tabs and run

$ npm run watch-assets
$ npm run db
$ npm run watch

Lint

Lint will run when you commit something

npm run lint

Open browser and hit http://127.0.0.1:3000/demo

TODOs

  • Templates for each type of inputs
  • Tests
  • Serialize inputs (expose refs)
  • Publish to npm

About

Converts Mongoose schema to React form which works on both client and server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published