cli for fast node/mongodb api
Clone the project
git clone https://github.com/oussamabng/Auto-node-mongo-api
cd Auto-node-mongo-api
install cli
npm install -g mongoose-model-cli
Make your first model with
mongoose generate model user name:string notes:mixed houseId:idt
Edit the uri in models/connection-string.js
var uri = 'mongodb://localhost:27017/cli';
edit the models array with the name of your models of the api in the file 'add_routes.py'
models = ["User"]
run the script
python3 add_routes.py
install dependecies and run the project
npm install
npm run dev