Open benel opened 5 months ago
Add a file named _id
in backend/src
with the following content:
_design/app
Then you can push the backend code with:
npx couchdb-push http://TO_BE_CHANGED:TO_BE_CHANGED@localhost:5984/my-app backend/src
You can push all sample documents with:
for f in samples/* ; npx couchdb-push http://TO_BE_CHANGED:TO_BE_CHANGED@localhost:5984/my-app $f
But this is really slow! It seems that it could be replaced:
couchdb-bootstrap
(from the same software suite) but with adaptations,putdoc
directly (with the --docs
option).
Among other reasons, the idea would be to use less disk space on developers' (esp. students') computers.