yarn
yarn dev
- Navigate to http://127.0.0.1:5984/_utils
- Create admin (Go to "Admin Party")
- Go to "Databases" and open "_users"
- Then "All Documents -> (+) -> New Doc" and add new user:
{
"_id": "org.couchdb.user:geom",
"name": "geom",
"roles": [
"user",
"reader"
],
"type": "user",
"password_scheme": "pbkdf2",
"iterations": 10,
"derived_key": "6e35c34726a792f3851cda6d8909e502bc998a15",
"salt": "482067994aee02e9bdde9cbabe0bfa2f"
}
- "Databases -> Create Database" name it "books"
- Open newly created database "books", go to "Permission", then "Roles", type "user" and "Add Role".
- Open running application http://localhost:3000/ use username -
geom
, password987
- ENJOY
You can also run CouchDB in Docker / Podman container, here is how: https://hub.docker.com/_/couchdb
P.S> Books data should have fields: title and author, and you can get JSON array from here