Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2193 from HospitalRun/doc-update
Browse files Browse the repository at this point in the history
docs: add note about making hospitalrun a public database
  • Loading branch information
matteovivona authored Jun 30, 2020
2 parents 1561ffa + 10057a8 commit fc77fed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,19 @@ The following directions will be for running CouchDB via Docker Compose.

This should launch a new CouchDB instance on `http://localhost:5984`, create system database, configure CouchDB as Single Node, enable CORS, create `hospitalrun` database, create a default admin with a username of `admin` and password of 'password'

4. Create a sample user with a username of `username` and password of 'password' to use new login page [#2137](https://github.com/HospitalRun/hospitalrun-frontend/pull/2137)
4. Make the `hospitalrun` database a public database by removing its member permissions:

```
curl -X PUT http://admin:password@localhost:5984/hospitalrun/_security -d '{"members": {}, "admins": {"roles": ["_admin"] }}'
```
5. Create a sample user with a username of `username` and password of 'password' to use new login page [#2137](https://github.com/HospitalRun/hospitalrun-frontend/pull/2137)
```
curl -X PUT http://admin:password@localhost:5984/_users/org.couchdb.user:username -H "Accept: application/json" -H "Content-Type: application/json" -d '{"name": "username", "password": "password", "metadata": { "givenName": "John", "familyName": "Doe"}, "roles": [], "type": "user"}'
```
5. Launch `http://localhost:5984/_utils` to view Fauxton and perform administrative tasks.
6. Launch `http://localhost:5984/_utils` to view Fauxton and perform administrative tasks.
**_Cleanup_**
To delete the development database, go to the root of the project and run `docker-compose down -v --rmi all --remove-orphans`
Expand Down

1 comment on commit fc77fed

@vercel
Copy link

@vercel vercel bot commented on fc77fed Jun 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.