- mongo must be up and running
Config file should be a .js
file and should look something like this:
module.exports = {
name: 'dating-app',
models: {
User: {
email: { type: 'String', default: '', unique: true, required: true },
isVerified: { type: 'Boolean', default: false },
},
Vote: {
isLiked: { type: 'Boolean', default: true },
otherId: { type: 'String' },
userId: { type: 'String' },
},
Profile: {
userId: { type: 'String' },
age: { type: 'Number' },
name: { type: 'String' },
},
},
};
Run npm i && ./bin/run <path-to-the -config-file>
in the project root( might take 2 - 3 minutes ):
- Finally the generated code can be found in
code
directory in the project root.
- Authentication
- Authorization
- Fill Nested Data as JSON
- Add ref/populate support in schema
- Web:boolean i/p box
- paramValidation
- provide db Freedom to user
- Allow users with options to customize the app
- Improve UI
- should be able to generate API and AdminPanel independently.