View Code? Open in Web Editor
NEW
An implementation project for our course of Advance Data bases at TEC Costa Rica.
License: MIT License
JavaScript 97.12%
HTML 2.88%
reactcouchdbimplementation's Introduction
To start run in the terminal.
- docker-compose up -d
- npm run start
Implementation guide, how we did.
- docker-compose up -d to run the container with CoachDB (See docker-compe.yml file for details).
- Go to http://localhost:5984/_utils/ to access CoachDB dashboard.
- To enable CORS goto http://localhost:5984/_utils/#_config and click on CORS tab.
- To create a database go to http://localhost:5984/_utils/#/_all_dbs and click on "Create Database"(We created experiments_list data base).
- We built a simple React APP using Parcel. To install Parcel: npm install parcel-bundler react react-dom pouchdb
- Built a simple React App.
- Configure PouchDB to be live with our instance of CouchDB, and reconnect everytime we recover the connection.
- To implement Map-Reduce in couchDB follow the next steps:
- Create a design document with the views and its map and the reduce function if apply.
- Upload the design document to the database.
- Query the view and use the resultset.
reactcouchdbimplementation's People
Contributors
Watchers