Converts Mongoose schema to React form which works on both client and server
JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
src
.babelrc
.editorconfig
.eslintignore
.eslintrc
.gitignore
.nvmrc
README.md
gulpfile.babel.js
nodemon.json
package.json
server.js

README.md

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