Last updated:
0 purchases
foodb objectbox adapter
foodb_objectbox_adapter #
A new Flutter package project.
Getting Started #
This project is a starting point for a Dart
package,
a library module containing code that can be shared easily across
multiple Flutter or Dart projects.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
Running unit test. #
As this repo is using objectbox, it is very advisable to go through https://docs.objectbox.io/getting-started
You'll also need to run
bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh)
copied to clipboard
(MacOS) Manually create lib directory if you face this error. Chances are it created executable lib file.
ls: /usr/local/lib/*: Not a directory
Error installing the library - not found
copied to clipboard
Create temp at the same level of lib and test.
Create .env at the same level of lib and test.
Define COUCHDB_TEST_URI variable in .env with your own couchdb instance.
Running couch db with docker #
Docker images options:
couchdb official
apache couchdb
You might face lots of error when you view it in terminal. To resolve the errors, continue.
Create directory to mount volume:
$ mkdir ~/data
$ docker run -p 5984:5984 --volume ~/data:/opt/couchdb/data --env COUCHDB_USER=admin --env COUCHDB_PASSWORD=password apache/couchdb:2.1.1
copied to clipboard
Update user
$ curl localhost:5984
{"couchdb":"Welcome","version":"2.1.1","features":["scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
$ curl -X PUT http://admin:password@localhost:5984/_users
{"ok":true}
$ curl -X PUT http://admin:password@localhost:5984/_replicator
{"ok":true}
$ curl -X PUT http://admin:password@localhost:5984/_global_changes
{"ok":true}
copied to clipboard
Update COUCHDB_TEST_URI to COUCHDB_TEST_URI=http://admin:password@localhost:5984.
Reference: #
https://github.com/apache/couchdb/issues/1354#issuecomment-393389348
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.